Alphabetical List of All Editor Commands

[line]a
append
[line]a text
append text
[line]ad
append delete buffer
bnumber
branch always number newlines
bnumbert
branch if TRUE number newlines
bnumberf
branch if FALSE number newlines
[range]c
change
[range]c text
change for text
[range]d
delete
e
edit current file
e file
edit file if buffer clean
ee file
edit file
f
query current file
f file
set current file
[range]g/pattern/editor commands
global
[range]g^/pattern/editor commands
global
h number
hold for number time units
[line]i
insert
[line]i text
insert text
[line]id
insert delete buffer
[line]j
join line and line+1
[range]ktarget_line
kopy range after target_line
l character
learn character until Break
[range]mtarget_line
move range after target_line
oC{+|-|~|?}
Set (+), unset (-), toggle (~) or query (?) the option signified by character C. Valid option characters are:
a
option anchor
b
option blank
c
option command
d
option dual
e
option environment
f
option fill
i
option insert
j
option justify
l
option limit
m
option meta
n
option newline
s
option save
t
option tab
w
option wrap
[range]p
print expanding non-printing ascii characters into \hh sequences.
[range]P
print without expanding non-ascii characters.
q
quit the editor if buffer has not been modified
qq
quit the editor regardless
[line]r
read the current file after line
[line]r file
read file after line
[range]s/pattern/replacement_text/
Substitute text; characters other than / may also be used as the delimiter
[range]snumber/pattern/replacement_text/
Substitute text, numberth occurrence only.

Where:

/
is a single character deliminator (Usually a slash, but other characters may be used
number
is the numberth occurrence
t character replacement_text
define translate for character
t character
remove translate for character
t ? character
query translate for character
[range]ucount editor_commands
until count
[range]ucond editor_commands
until cond
[range]uCountCond editor_commands
until Count or Cond, where cond is one of "t" (TRUE) or "f" (FALSE).
vanumber number number
change color of display areas
vc
center display
vc number
set center line
vlquantity
set left margin
vrquantity
set right margin
quantity
scroll display
vw
don't wait for horizontal retrace when using color card
[range]w
write to current file
[range]w file
write to file
[range]wa
write append to current file
[range]wa file
write append to file
x
execute current file
x file
execute file
[range]y"prompt_text"command_chars"commands
yut
[range]zcccharacter
zap cursor change
[range]zcd
zap cursor delete
[range]zce
zap cursor erase
[line]zcfcharacter
zap cursor fill character
[line]zchlocation
zap cursor horizontal
[line]zcl
zap cursor lock
[line]zcp
zap cursor purge character delete buffer
[range]zcr
zap cursor restore from character delete buffer
[range]zcRnumber
zap cursor restore number characters
[range]zcs
zap cursor save in character delete buffer
[line]zkline
zap kopy to/from command line
[range]zlc
zap line center between margins
[range]zld
zap line delete between limits
[range]zle
zap line erase between limits
[range]zlf
zap line fill between margins
[range]zlj
zap line join
[range]zlo
zap line overstrike
[range]zlp
zap line paragraph
zlq
zap line query if tags are set
[line]zlr
zap line restore delete buffer at cursor
[range]zls
zap line save text between limits in delete buffer
[line]zlt
zap line tag
zlu
zap line unset/set all tags
zm
zap message
[line]zp
zap purge line delete buffer
[line]zq
zap query