Vim - Toggle between vertical and horizontal window layout


I keep forgetting how to do this - Note to self. Make a

How to change from a horizontal list to a vertical list of windows, and vice versa:

—————————
horizontal list of windows
to vertical list of windows
—————————
    W|W|W
to
    W
    W  
    W

    :windo wincmd K

—————————-
vertical list of windows
to horizonal list of windows
—————————-
    W
    W  
    W
to
    W|W|W

  :windo wincmd H

Powered by ScribeFire.


About this entry