Vim Window Management Link to heading
In Vim/Neovim <Ctrl-w>
puts you into “window command mode” for managing windows.
Keybind | Action |
---|---|
<Ctrl-w> + H | Move window to far left |
<Ctrl-w> + J | Move window to far bottom |
<Ctrl-w> + K | Move window to far top |
<Ctrl-w> + L | Move window to far right |
<Ctrl-w> + x | Swap window with neighbor (to the right or top) |
<Ctrl-w> + R | Swap window with neighbor (up/left) |
<Ctrl-w> + r | Swap window with neighbor (down/right) |