I have list of buffers in vim. I can split buffer horizontally using :sb[N] where N is the buffer number. How can I split the buffer vertically ?
To put an existing buffer in a split window you use the
Where # is the buffer number
This is a command I created and added to my .vimrc to allow me to open a current buffer in a vertical split
As kirysu said, but additionally with "positioning the other split".
:vert rightbelow sb otherfile.txt
:vert bel sb otherfile.txt
... opens a existing buffer, named
Here you can use the