Vim logo vim online Vim Book Ad

basic Tip #250: One big window

 tip karma   Rating 30/14, Viewed by 1255 

created:   May 23, 2002 6:40      complexity:   basic
author:   Kontra Gergely      as of Vim:   5.7

If you like to see your files in fullscreen, and you have to edit more files, you can do the following.
* Use only one window
* Open further files with :e
* type :nm <A-Up> :bp!<CR>
* type :nm <A-Down> :bn!<CR>
* type :nm <C-F4> :bd!<CR>
You can of course change the keys.
Now to switch between windows, you can press Alt-Up, and Alt-Down
(Just in the GUI, if you use console, don't use Alt key)
Another idea is to map them to Ctrl-Tab, and Ctrl-Shift-Tab
To close the current file you can press Ctrl-F4

 rate this tip  Life Changing Helpful Unfulfilling 

<<C/C++: Quickly insert #if 0 - #endif around block of code | c/c++: align #endif with corresponding #if/#ifdef >>

Additional Notes

Anonymous, May 23, 2002 7:47
When I say type, I mean put it into your .vimrc of course
Anonymous, May 23, 2002 19:37
Should the 'hidden' option be set for this to work?
[email protected], May 27, 2002 6:07
Consider using :bwipeout instead of :bd
see :help bd
alinets@yahoo, June 11, 2002 8:23
For some odd reason A-Up and A-Down was not working for me.
I think C-Left and C-Right are also a nice combination
Gergely Kontra, June 12, 2002 6:57
Yes, all the Alt combinations are problematical and works only in the GUI.
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo