Navigating Windows

Ctrl-Wh/j/k/l โ€” move between splits. Ctrl-Wc โ€” close. Ctrl-Wo โ€” only.

Keys: Ctrl-W h, Ctrl-W j, Ctrl-W k, Ctrl-W l, Ctrl-W c, Ctrl-W o

Ctrl-W with a direction key moves to the next window in that direction. Ctrl-Wc closes the current window. Ctrl-Wo closes everything except the current window.

Ctrl-W is the window prefix. After it, h/j/k/l jump to the window in that direction. c closes; o keeps only this one.

Window to the left
KeyNote
{key:Ctrl-W}
h
Window below
KeyNote
{key:Ctrl-W}
j
Window above
KeyNote
{key:Ctrl-W}
k
Window to the right
KeyNote
{key:Ctrl-W}
l
Close current window
KeyNote
{key:Ctrl-W}
c
Close all other windows
KeyNote
{key:Ctrl-W}
o
Cycle through windows
KeyNote
{key:Ctrl-W}
w
Switch to previous window
KeyNote
{key:Ctrl-W}
p
Ctrl-Wh/j/k/l โ€” move between
Ctrl-Wc โ€” close window
Ctrl-Wo โ€” only this one

See also: Creating Splits, Move and Resize Windows, The Ctrl-W Family