Tuesday, July 31, 2012

ctrl+tab style tabs in gvim

Forget where i first saw this but here it is, the win7 vim path is currently
C:\Program Files (x86)\Vim
and inside this folder the file _vimrc should have these lines 

:nmap <C-S-tab> :tabprevious<cr>
:nmap <C-tab> :tabnext<cr>
:map <C-S-tab> :tabprevious<cr>
:map <C-tab> :tabnext<cr>
:imap <C-S-tab> <ESC>:tabprevious<cr>i
:imap <C-tab> <ESC>:tabnext<cr>i
:nmap <C-t> :tabnew<cr>
:imap <C-t> <ESC>:tabnew<cr> 

After this change, restart vim, hit ctrl+tab, enjoy.

No comments:

Post a Comment