Tip #339: "tabbed windows"
tip karma |
Rating 38/21, Viewed by 6982
|
created: |
|
October 8, 2002 15:37 |
|
complexity: |
|
basic |
author: |
|
[email protected] |
|
as of Vim: |
|
5.7 |
This is what I use to emulate the multi-tab environment of certain editors like EditPlus, and easly switch between multiple files being edited (opened with the :split command):
" put this in your .vimrc file to rotate windows with Alt-K / Alt-J
set winminheight=0
nmap <M-k> <C-W>r<C-W>k:resize<CR>
nmap <M-j> <C-W>j<C-W>R:resize<CR>
imap <M-k> <ESC><M-k>i
imap <M-j> <ESC><M-j>i
" end
The only problem is that after a :split you have to Alt-K-J to keep the new window "maximized".
<<vim + cscope + cygwin |
Visual Select And Search >>
Additional Notes
|