Vim Tips Wiki
Register
(Change <tt> to <code>, perhaps also minor tweak.)
(reviewed)
Line 1: Line 1:
 
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>.
{{review}}
 
 
You can also have all splits open below the current window by seeting the <tt>splitbelow</tt> option (e.g. place in your .vimrc):
{{TipImported
 
|id=869
 
|previous=868
 
|next=872
 
|created=2005
 
|complexity=basic
 
|author=Ivan Tishchenko
 
|version=6.0
 
|rating=9/8
 
|category1=
 
|category2=
 
}}
 
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>. You'll like it!
 
 
==Comments==
 
You can also have all splits open below the current window by putting the following in your vimrc:
 
   
 
<pre>
 
<pre>
Line 26: Line 11:
 
set splitright
 
set splitright
 
</pre>
 
</pre>
 
----
 

Revision as of 10:10, 1 July 2013

Have you ever been annoyed with that fact that :new opens a buffer above the current? If yes, then try :below new. You can also have all splits open below the current window by seeting the splitbelow option (e.g. place in your .vimrc):

set splitbelow

And the process is similar if you want vertically-split windows to open to the right:

set splitright