Switching between files
Talk0
1,599pages on
this wiki
this wiki
Redirected from VimTip195
Tip 195 Printable Monobook Previous Next
created January 9, 2002 · complexity basic · author Kontra, Gergely · version 5.7
When you edit multiple files, you often need to change windows.
You can set up Vim in windows and gvim to switch between windows with the commonly used Ctrl-Tab and Ctrl-Shift-Tab
The mappings
nmap <C-Tab> <C-w>w nmap <C-S-Tab><C-w>W
They wrap around.
References
Edit
Comments
Edit
I don't know which way is better, but I couldn't get that way to work. So I use this instead.
:map <C-Tab> :bn<CR> :map <C-S-Tab> :bp<CR>