Repository navigation
Command Reference
Brett Estrade edited this page Nov 14, 2026
·
3 revisions
The complete command listing below is generated from the executable's POD on every publication. It therefore follows the current code's documented controls. For worked examples, see Modes and Editing, Search and Substitution, and CLI and Batch.
h j k l / arrows left, down, up, right
0 ^ $ / Home End line start, first nonblank, line end
w b e word forward, backward, end (ASCII word classes)
gg G first / last line; 20G or 20gg jumps to line 20
Ctrl-F Ctrl-B page forward / backward; PageDown / PageUp also work
Ctrl-D Ctrl-U half-page forward / backward
Ctrl-L or L redraw
i a I A insert before/after cursor, first nonblank/end of line
o O open line below/above and insert
R overwrite mode; Backspace moves left
rX replace character with X; 3rX replaces three
x / Delete delete character(s)
dd yy cc delete / yank / change line(s)
d c y + w e b h l 0 $ same-line characterwise operators
D C delete / change through end of line
p P put register after/before cursor or below/above line
J join next line with whitespace handling
u Ctrl-R undo / redo; one insert session is one undo unit
/pattern ?pattern forward / backward regex search, wrapping
n N repeat search in same / opposite direction
: ex prompt
ZZ write and quit
\t format Perl (backslash, then t); same as :pt
:w [file] write; :w! permits replacing existing/changed contents
:wq [file] write and quit; :x also writes and quits
:q / :q! quit with unsaved guard / discard changes
:e [file] open or reload; :e! discards unsaved changes
:enew / :enew! new unnamed buffer, with unsaved guard / discard
:set number show line numbers (default); :set nonumber hides
:set syntax enable basic Perl colors; :set nosyntax disables
:undo / :redo undo / redo
:123 go to line 123; :$ goes to last line
:s/foo/bar/ replace first occurrence on current line
:%s/foo/bar/g replace all occurrences throughout file
:2,10s/foo/bar/gi range, global, case insensitive
:.,$s#old#new#g current line through EOF, alternate delimiter
:pt / :perltidy format buffer if Perl::Tidy is installed
:help short controls reminder
pvim source · Downloads · Issues
Generated from source documentation for pvim 0.1.13. How these pages stay current.
pvim 0.1.13