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), pane moves (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 H/J/K/L or Ctrl-w H/J/K/LMove the active pane to the left/bottom/top/right edge, spanning the full height or width
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.

Hold Alt and drag with the left mouse button inside a pane to rearrange it. A thick pane drop outline shows where it will land on release. The outer two columns or one row of the layout move it to that whole edge; the outer quarter of another pane splits that pane to make room; the middle of another pane swaps their complete contents. Shared borders resize even with Alt held. Alt-left-press inside a terminal pane belongs to Runyte and is not forwarded to the child, even when the child requests mouse reporting. Pane moves preserve the pane’s content and terminal session, and are unavailable while Zen or full-screen maximizes a pane.

Hold Shift and Alt when starting a left-drag to extend the pane in place. Drag outside one of its sides: the outline snaps that side to the far edge of the pane under the pointer. Release to apply it, or press Escape to cancel. The other sides stay anchored. Neighbours shrink where they can remain one rectangle; covered panes, or panes that would be split into separate pieces, close as with :wc. Adjacent panes grow into any space left by those closures. Buffers, unsaved edits, and terminal sessions remain available. If the result cannot form a rectangular split layout, there is no outline and release leaves the layout unchanged. Shared borders still resize normally.

For example, starting with AA / BC, extending C upward gives AC / BC; extending B right gives AC / BB; extending B upward leaves B filling the editor. With AAA / BCD, extending C upward closes A and grows B and D, leaving three full-height columns BCD.

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