Last Updated: February 25, 2016
·
589
· gustafshin

Fast tab management in VIM

I use a lot of tabs, so to get a better control I use the following binding:

noremap <S-C-Left> :tabprevious<CR>
noremap <S-C-Right> :tabnext<CR>
noremap <S-C-CR> :tabnew
inoremap <S-C-Left> <Esc>:tabprevious<CR><Insert>
inoremap <S-C-Right> <Esc>:tabnext<CR><Insert>

After defining the previous settings inside your .vimrc I can use the following key combinations:

  • Ctrl + Shift + Left -> moves to left tab
  • Ctrl + Shift + Right -> moves to right tab
  • Ctrl + Shift + Enter -> prompt for new file path and open it into a new tab