Reputation:
When doing a vsplit of the window on a file in vim, the default positioning of the vertical window is to the left of the original window. I need to manually change it to the right with "Ctrl+w + Shift + L"
Is there any way of opening a vertical split by default to the right?
Upvotes: 4
Views: 874
Reputation: 45670
If you have the files in buffers already, this will work
:vert belowright sb N
where N
is the name of the buffer
Upvotes: 1
Reputation: 5523
:set splitright
will do what you want. Also there is a splitbelow
option which is for horizontal split.
Check the help
:help splitright
Upvotes: 18