Pane keys
Development reference · View source
Pane commands live under Space w, with Ctrl-w as the compatibility
spelling. From Insert and Replace modes, Ctrl-w reaches focus movement
(h/j/k/l), w, x, n, p, and a; Terminal Insert adds v/s and
f/z (see Terminals
).
| Key | Action |
|---|---|
Space w v / Space w s, or Ctrl-w v/s | Vertical/horizontal splits; from a terminal, the new pane opens the working-directory explorer |
Space w… or Ctrl-w… | Window focus, close, next, and only-window operations |
Space w x or Ctrl-w x | Exchange the active pane’s complete content with the previously focused pane, following the content to its new position |
Space w = | Equalize pane widths, then pane heights within each column |
Space w f / Space w z, or Ctrl-w f / Ctrl-w z | Toggle the full-screen pane / the centred Zen viewport |
Ctrl-h/j/k/l | Move between panes without a prefix, when editor.fast_pane_keys is on |
:vsplit [path] / :hsplit [path] (:split) | Create a side-by-side / stacked split |
:resize-right +/- N | Grow or shrink the active pane at its right edge by N terminal cells |
:resize-left +/- N | Grow or shrink the active pane at its left edge by N terminal cells |
:resize-top +/- N | Grow or shrink the active pane at its top edge by N terminal cells |
:resize-bottom +/- N | Grow or shrink the active pane at its bottom edge by N terminal cells |
Borders can also be dragged with the mouse. The key-hint popup after
Space w lists every window command.
Examples:
| Keys | Result |
|---|---|
Space w v then Space f | Open a file beside the current one |
:resize-right + 10 | Make the active pane 10 cells wider |
Space w = | Level every split again |
Ctrl-w l in Insert mode | Move right without leaving Insert mode |