I have three vertically split windows. I want the leftmost window to remain as it is, but move the two other windows from a vertical to a horizontal split. How can I achieve this?
I want to get from
----------------
| b1 | b2 | b3 |
| | | |
| | | |
----------------
to
----------------
| b1 | b3 |
| |-------|
| | b2 |
----------------
I can't figure out how to do this with the CTRL-W maps listed in :h window-moving
. The only thing I could think of involves opening and closing windows, not moving them, and before I create a mapping or command for it I wanted to ask if there isn't a way to do it by window movement. Here's what I've got:
- :spl - split middle window
- :b 3 - open the buffer from the rightmost window in the new split
- CTRL-W+l - move cursor to rightmost window
- CTRL-W+c - close current (rightmost) window