: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)
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.
: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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With