Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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>  10gt


What 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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: