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
Ctrl-W
h
Window below
KeyNote
Ctrl-W
j
Window above
KeyNote
Ctrl-W
k
Window to the right
KeyNote
Ctrl-W
l
Close current window
KeyNote
Ctrl-W
c
Close all other windows
KeyNote
Ctrl-W
o
Cycle through windows
KeyNote
Ctrl-W
w
Switch to previous window
KeyNote
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 {key:Ctrl-W} Family