Wikia

Vim Tips Wiki

Changes: Opening new buffer below the current

Edit

Back to page

(Little more.)
(added a tip on changing between buffers in the current window)
Line 12: Line 12:
 
}}
 
}}
 
Have you ever been annoyed with that fact that <code>:new</code> opens a buffer above the current? If yes, then try <code>:below new</code>.
 
Have you ever been annoyed with that fact that <code>:new</code> opens a buffer above the current? If yes, then try <code>:below new</code>.
  +
  +
After opening two buffers in the current window, press Control and, without unpressing, press twice W: it will change the buffer you are currently in.
   
 
You can also have all splits open below the current window by setting the <tt>splitbelow</tt> option (for example, place the following in your [[vimrc]]):
 
You can also have all splits open below the current window by setting the <tt>splitbelow</tt> option (for example, place the following in your [[vimrc]]):

Revision as of 13:20, November 13, 2013

Tip 869 Printable Monobook Previous Next

created 2005 · complexity basic · author Ivan Tishchenko · version 6.0


Have you ever been annoyed with that fact that :new opens a buffer above the current? If yes, then try :below new.

After opening two buffers in the current window, press Control and, without unpressing, press twice W: it will change the buffer you are currently in.

You can also have all splits open below the current window by setting the splitbelow option (for example, place the following in your vimrc):

set splitbelow

The process is similar if you want vertically-split windows to open to the right. Use :below vnew to create a new vertical buffer on the right, or put the following in vimrc:

set splitright

Comments

Around Wikia's network

Random Wiki