Re:Efficient Editing With vim
by DannoHung on Friday September 25, 2009 @02:17PM
(#843988)
gt and gT in command mode also do next tab and previous tab
[ Parent
| on HN ]
I 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.
also #gt will go that tab number.
I've changed my tab text to show the number in parenthesis before the name.
For 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> 10gtWhat is that heretical "g" doing in front of "vimrc"?
You know, if I had a terminal emulator that I could run vim with 24-bit colour depth in, that would go a long way towards turning me from the path of heresy.
Maybe it's some config he only uses in gvim.
Whoosh . . . ?
This 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.
Re:Efficient Editing With vim
by solutionyogi on Friday September 25, 2009 @03:30PM
(#844137)
That's a neat idea. How do you change it to show tab number in the tab header?
This is for GVIM.
set guitablabel=(%N%M)\ %f :help setting-tabline
Re:Efficient Editing With vim
by solutionyogi on Friday September 25, 2009 @02:32PM
(#844023)
Awesome, I didn't know this shortcut before! Much better than using :tabn :tabp !