User guide / Panes

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 ).

KeyAction
Space w v / Space w s, or Ctrl-w v/sVertical/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 xExchange 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 zToggle the full-screen pane / the centred Zen viewport
Ctrl-h/j/k/lMove 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 +/- NGrow or shrink the active pane at its right edge by N terminal cells
:resize-left +/- NGrow or shrink the active pane at its left edge by N terminal cells
:resize-top +/- NGrow or shrink the active pane at its top edge by N terminal cells
:resize-bottom +/- NGrow 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:

KeysResult
Space w v then Space fOpen a file beside the current one
:resize-right + 10Make the active pane 10 cells wider
Space w =Level every split again
Ctrl-w l in Insert modeMove right without leaving Insert mode