Wikia

Vim Tips Wiki

Changes: One big window

Edit

Back to page

(Move categories to tip template)
(Remove html character entities)
 
Line 16: Line 16:
 
* Use only one window
 
* Use only one window
 
* Open further files with :e
 
* Open further files with :e
* type :nm <A-Up> :bp!<CR>
+
* type :nm <A-Up> :bp!<CR>
* type :nm &lt;A-Down&gt; :bn!&lt;CR&gt;
+
* type :nm <A-Down> :bn!<CR>
* type :nm &lt;C-F4&gt; :bd!&lt;CR&gt;
+
* type :nm <C-F4> :bd!<CR>
   
 
You can of course change the keys.
 
You can of course change the keys.

Latest revision as of 05:27, September 29, 2008

Tip 250 Printable Monobook Previous Next

created May 23, 2002 · complexity basic · author Kontra Gergely · version 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.

CommentsEdit

When I say type, I mean put it into your .vimrc of course


Should the 'hidden' option be set for this to work?


Consider using :bwipeout instead of :bd :help :bd.


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


Yes, all the Alt combinations are problematical and work only in the GUI.


Around Wikia's network

Random Wiki