30+ window commands hide behind the Ctrl-W prefix.
Keys: Ctrl-W
Ctrl-W is the window prefix: navigate (h/j/k/l), close (c, o), split (s, v), move (H/J/K/L), resize (+/-/</>/=), and more.
The Ctrl-W Family
Ctrl-W is the window prefix. Everything window-related lives behind it. Like the [ family, it's symmetric in places โ capital direction = move, lowercase = navigate.
Navigation
Key
Action
Ctrl-Wh/j/k/l
Move to window in direction
Ctrl-Ww
Cycle to next window
Ctrl-WW
Cycle to previous window
Ctrl-Wp
Switch to previous window
Ctrl-Wt
Top-most window
Ctrl-Wb
Bottom-most window
Splitting
Key
Action
Ctrl-Ws
Horizontal split (same buffer)
Ctrl-Wv
Vertical split (same buffer)
Ctrl-Wn
New empty horizontal split
Ctrl-W^
Split with alternate buffer
Ctrl-Wf
Split and edit file under cursor
Ctrl-Wgf
Open file under cursor in new tab
Closing
Key
Action
Ctrl-Wc
Close current window
Ctrl-Wq
Quit (close window or Vim)
Ctrl-Wo
Close all but current
Move and resize
Key
Action
Ctrl-WH/J/K/L
Move window to far left/bottom/top/right
Ctrl-Wr / Ctrl-WR
Rotate windows down / up
Ctrl-Wx
Exchange with next window
Ctrl-W+ / Ctrl-W-
Increase / decrease height
Ctrl-W> / Ctrl-W<
Increase / decrease width
Ctrl-W_
Maximize height
Ctrl-W|
Maximize width
Ctrl-W=
Equalize all
Misc
Key
Action
Ctrl-WT
Move window to its own new tab
Ctrl-W}
Open preview window with tag under cursor
Ctrl-Wz
Close preview window
Watch
๐บ #0334 Ctrl-W s Horizontal Split (not yet published)