Navigating Windows

Ctrl-W h/j/k/l โ€” move between splits. Ctrl-W c โ€” close. Ctrl-W o โ€” 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-W c closes the current window. Ctrl-W o 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-W h/j/k/l โ€” move between
Ctrl-W c โ€” close window
Ctrl-W o โ€” only this one

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