Skip to content

Navigation

Brett Estrade edited this page Nov 14, 2026 · 4 revisions

Navigation and screen controls

Counts precede commands: 5j, 20G, 10gg. Escape cancels a pending count.

Keys Movement
h j k l / arrows Left, down, up, right
0 / Home Absolute start of line
^ First nonblank byte
$ / End Final character cell of the line
w / b / e Next word start / previous word start / word end
gg / G First / last line
20gg / 20G / :20 Go to line 20
:$ Go to the last line
Ctrl-F / PageDown Page forward
Ctrl-B / PageUp Page backward
Ctrl-D / Ctrl-U Half-page forward / backward
Ctrl-L / L Force a screen redraw
Ctrl-Z, then shell fg Suspend cleanly, then resume the same mode and buffer

Words use ASCII-style word/punctuation classes. These motions are a subset of Vim; paragraph, sentence, marks, bracket matching and text-object motions are pending.

Long lines pan horizontally instead of wrapping. Numbers are off by default. :set number (or :set nu) enables a right-aligned three-column number field, in yellow, followed by one separator space. For example, line 1 has two leading spaces, the yellow digit 1, then a space before text. Four-digit and longer numbers widen the field instead of being clipped. :set nonumber (or :set nonu) hides it again. Disabling Perl syntax colors does not disable yellow line numbers.

Terminal dimensions are read on the next keypress after a resize. Linux and macOS/BSD-style terminal-size ioctls are implemented; other POSIX systems fall back to LINES/COLUMNS, then 24x80. Linux and macOS have PTY tests; real BSD interactive coverage is still pending.

Perl syntax colors are on by default. :set nosyntax disables them; :set syntax restores them. See Perl Features.

Clone this wiki locally