4 ms·
gt and gT in command mode also do next tab and previous tab
by DannoHung 17y ago
gt and gT in command mode also do next tab and previous tab
- solutionyogi 17y agoAwesome, I didn't know this shortcut before! Much better than using :tabn :tabp !
- deleted 17y ago[deleted]
- bockris 17y agoalso #gt will go that tab number. I've changed my tab text to show the number in parenthesis before the name.
- solutionyogi 17y agoThat's a neat idea. How do you change it to show tab number in the tab header?
- graysnorf 17y agoFor those who prefer alt navigation, you can add to your gvimrc " tab navigation map <A-1> 1gt map <A-2> 2gt map <A-3> 3gt map <A-4> 4gt map <A-5> 5gt map <A-6> 6gt map <A-7> 7gt map <A-8> 8gt map <A-9> 9gt map <A-0> 10gt
- apotheon 17y agoWhat is that heretical "g" doing in front of "vimrc"?
- apotheon 17y agoThis also works with Vimperator. I'm now thinking about installing that Firefox extension that gives all the tabs numbers, for ease of reference. Alas, I don't remember what it was called -- but I'm sure I'll find it again.
- apotheon 17y agoI never bothered to learn that stuff before I started using Vimperator. I tend to prefer buffers over tabs for dealing with multiple files in a single Vim instance, so I never had much use for tab-related keybindings until I started using a vi-like interface for a tabbed browser. Maybe that's just me, though.