Technology
 

How to toggle between all vertical and all horizontal window layout

From Vim Tips Wiki

(Redirected from VimTip862)

Tip 862 Previous Next created January 25, 2005 · complexity intermediate · author Charles E. Campbell, Jr. · version 6.0


Suppose you have three windows in a "horizontal list", like this:

W|W|W

Entering the command:

:windo wincmd K

will change the windows to a "vertical list", like this:

W
W
W

Starting with a "vertical list", entering the command:

:windo wincmd H

will change the windows to a "horizontal list".

[edit] Related plugins

[edit] Comments