talideon.com

Tradire è Tradure

March 13, 2007 at 3:25PM Sane vim tab navigation

To make tabs in Vim 7 usable, add this to your .vimrc:

" Sane tab navigation
:nmap <A-PageUp>   :tabprevious<cr>
:nmap <A-PageDown> :tabnext<cr>
:map  <A-PageUp>   :tabprevious<cr>
:map  <A-PageDown> :tabnext<cr>
:imap <A-PageUp>   <ESC>:tabprevious<cr>i
:imap <A-PageDown> <ESC>:tabnext<cr>i
:nmap <C-n>        :tabnew<cr>
:imap <C-n>        <ESC>:tabnew<cr>
Technorati Search Technorati Search Irish Bloggers

Comments

No comments.

Post a comment

All form information is optional, but it’s a good idea to fill in your name and email address if you want me to take your comment seriously.

Spammers, don’t bother posting crap down here. The site is set up so that legitimate search engines (Google, for instance) won’t index pages with comments on them. Posting crud here only means you’re wasting my time and patience. Shoo!

Real names, please. Please include!
Won’t be displayed. Please include!
Displayed, if present.