I did that a moment ago by accident but I cannot find the key again.
up vote293down
votefavorite 147 |
How can you switch your current
windows from horizontal split to vertical
split and vice versa in Vim?
vim
split
|
||||
|
up vote385down voteaccepted | Vim mailing list says (re-formatted for
better readability):
Note that the t is lowercase, and the K and H are uppercase. Also, with only two windows, it seems like you can drop the Ctrl-W t part because if you're already in one of only two windows, what's the point of making it current?
|
||||||||||||||||||||
|
up vote97down vote | ^w followed by capital H ,J ,K
or L will move the current
window to the far left ,bottom ,top
or right respectively like
normal cursor navigation.The lower case equivalents move focus instead of moving the window.
|
||||||||
|
up vote15down vote | In VIM, take a look at the following to see
different alternatives for what you might
have done: :help opening-window For instance: Ctrl-W s
|
||||
|
up vote6down vote | The following ex commands will (re-)split
any number of windows:
If there are hidden buffers, issuing these commands will also make the hidden buffers visible.
|
||
|
up vote2down vote | When you have two or more windows
open horizontally or vertically and want to
switch them all to the other
orientation, you can use the following: (switch to horizontal)
(switch to vertical)
It's effectively going to each window individually and using ^WK or ^WH.
|
||
|
protected by Masi Nov 24 '13 at 7:55
Thank you for your interest in this question. Because
it has attracted low-quality answers, posting an answer
now requires 10
reputation on this site.
Would you like to answer one of these
unanswered questions instead?