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
Written by Gustaf Shin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#