Move and Resize Windows

Ctrl-W H/J/K/L moves the window. Ctrl-W +/-/</> resizes.

Keys: Ctrl-W H, Ctrl-W J, Ctrl-W K, Ctrl-W L, Ctrl-W +, Ctrl-W -, Ctrl-W =

Capital direction keys after Ctrl-W move the window to that side of the layout. Ctrl-W + and - resize vertically; < and > horizontally. Ctrl-W = balances all windows.

Once you have splits, you'll want to rearrange them. The capital direction keys move the current window to the edge of the layout, replacing the surrounding splits with a clean side-by-side or top/bottom configuration.

Move window to far left (full height)
KeyNote
{key:Ctrl-W}
H
Move window to bottom (full width)
KeyNote
{key:Ctrl-W}
J
Move window to top
KeyNote
{key:Ctrl-W}
K
Move window to far right
KeyNote
{key:Ctrl-W}
L
Increase height by 1
KeyNote
{key:Ctrl-W}
+
Decrease height by 1
KeyNote
{key:Ctrl-W}
-
Increase width by 1
KeyNote
{key:Ctrl-W}
>
Decrease width by 1
KeyNote
{key:Ctrl-W}
<
Equalize all windows
KeyNote
{key:Ctrl-W}
=
Maximize current window's height
KeyNote
{key:Ctrl-W}
_
Maximize current window's width
KeyNote
{key:Ctrl-W}
|

See also: Navigating Windows, Creating Splits