Reputation: 11687
I have two opened buffers (i.e. A and B) and one window. Currently I see A, I would like to open B in vertical window. To do it in horizontal window I can hit Ctrl+w ^, how to do it in vertical window? And how to change horizontal windows to vertical windows?
Upvotes: 4
Views: 250
Reputation: 42188
To display your two buffers vertically, you can use :
:vsplit #
or the short version
:vs #
To reorganize your layout from horizontal to vertical, you must use:
<C-W>K
: will move the current windows to to the top with a horizontal split
<C-W>J
: will move the current windows to to the bottom with a horizontal split
<C-W>H
: will move the current window to the the left with a vertical split
<C-W>L
: will move the current window to the the rigth with a vertical split
See :help windows.txt
for more information
Upvotes: 4