Home » Linux Administration, vi, vim and gvim

Vim – Toggle between vertical and horizontal window layout

2 July 2007 No Comment


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.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.