Tip 862 Printable Monobook Previous Next

created 2005 · complexity intermediate · author Charles E. Campbell, Jr. · version 6.0

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


Entering the command:

:windo wincmd K

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


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

:windo wincmd H

will change the windows to a "horizontal list".

Related plugins[edit | edit source]

  • twl.vim implements :TWL (toggle window layout) which detects which type of window layout you currently have (vertical or horizontal), and applies the correct command to toggle the layout.

Comments[edit | edit source]

Community content is available under CC-BY-SA unless otherwise noted.