Wikia

Vim Tips Wiki

Changes: Opening new buffer below the current

Edit

Back to page

(Change <tt> to <code>, perhaps also minor tweak.)
(reviewed)
Line 1: Line 1:
{{review}}
+
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>.
{{TipImported
+
You can also have all splits open below the current window by seeting the <tt>splitbelow</tt> option (e.g. place in your .vimrc):
|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 11: Line 11:
 
set splitright
 
set splitright
 
</pre>
 
</pre>
 
----
 

Revision as of 10:10, July 1, 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

Around Wikia's network

Random Wiki