talideon.com

Blackout Ireland

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>