News for hackers. Stuff that matters.
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
Re:Efficient Editing With vim by apotheon on Saturday September 26, 2009 @02:29AM (#845165)
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.

Re:Efficient Editing With vim by bockris on Friday September 25, 2009 @02:39PM (#844037)
also #gt will go that tab number. I've changed my tab text to show the number in parenthesis before the name.
Re:Efficient Editing With vim by graysnorf on Friday September 25, 2009 @06:54PM (#844618)
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>  10gt
Re:Efficient Editing With vim by apotheon on Saturday September 26, 2009 @01:12AM (#845065)
What is that heretical "g" doing in front of "vimrc"?
Re:Efficient Editing With vim by graysnorf on Wednesday October 07, 2009 @06:28PM (#867808)
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.
Re:Efficient Editing With vim by graywh on Sunday September 27, 2009 @09:15AM (#846810)
Maybe it's some config he only uses in gvim.
Re:Efficient Editing With vim by apotheon on Monday September 28, 2009 @09:37PM (#849617)
Whoosh . . . ?
Re:Efficient Editing With vim by apotheon on Saturday September 26, 2009 @01:11AM (#845062)
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?
Re:Efficient Editing With vim by bockris on Friday September 25, 2009 @03:40PM (#844160)
This is for GVIM.

  set guitablabel=(%N%M)\ %f
Re:Efficient Editing With vim by greyfade on Friday September 25, 2009 @10:23PM (#844888)

    :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 !