Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim split buffer and have it open at the bottom

Tags:

:sp 

opens up a split buffer on the top by default.

How do I give the split command so that the new buffer is opened up as the "bottom" buffer right away? (I don't want to do a C-w-r which I am aware rotates the buffer so that my newly opened buffer gets rotated to the bottom)

like image 385
Calvin Cheng Avatar asked Aug 26 '11 16:08

Calvin Cheng


People also ask

How do you split a buffer?

To put an existing buffer in a split window you use the sb# command (where # is the buffer number). Splits in VIM default to horizontal, to change this, prefix your command with vert which forces a vertical split of the next split command.


1 Answers

:belowright split will open the new window on the bottom regardless of whether or not you have set splitbelow. Similarly, :aboveleft split will open the new window at the top regardless of the 'splitbelow' setting.

like image 189
intuited Avatar answered Oct 25 '22 11:10

intuited