7.  Command descriptions

      The following form is a prototype for all ex commands:

address command ! parameters count flags
All parts are optional; the degenerate case is the empty command which prints the next line in the file. For sanity with use from within visual mode, ex ignores a ``:'' preceding any command.

      In the following command descriptions, the default addresses are shown in parentheses, which are not, however, part of the command.

abbreviate word rhs abbr: ab

( . ) append abbr: a
text
.

a!
text
.

args

( . , . ) change count abbr: c
text
.

c!
text
.

( . , . )copy addr flags abbr: co

( . , . )delete buffer count flags abbr: d

edit file abbr: e
ex file

e! file

e +n file

file abbr: f

file file

( 1 , $ ) global /pat/ cmds abbr: g

g! /pat/ cmds abbr: v

( . )insert abbr: i
text
.

i!
text
.

( . , .+1 ) join count flags abbr: j

j!

( . ) k x

( . , . ) list count flags

map lhs rhs

( . ) mark x

( . , . ) move addr abbr: m

next abbr: n

n!

n filelist
n +command filelist

( . , . ) number count flags abbr: # or nu

( . ) open flags abbr: o
( . ) open /pat/ flags

preserve

( . , . )print count abbr: p or P

( . )put buffer abbr: pu

quit abbr: q

q!

( . ) read file abbr: r

( . ) read !command

recover file

rewind abbr: rew

rew!

set parameter

shell abbr: sh

source file abbr: so

( . , . ) substitute /pat/repl/ options count flags abbr: s

stop

( . , . ) substitute options count flags abbr: s

( . , . ) t addr flags

ta tag

      The tag names in the tags file must be sorted alphabetically.

unabbreviate word abbr: una

undo abbr: u

unmap lhs

( 1 , $ ) v /pat/ cmds

version abbr: ve

( . ) visual type count flags abbr: vi

visual file
visual +n file

( 1 , $ ) write file abbr: w

( 1 , $ ) write>> file abbr: w>>

w! name

( 1 , $ ) w !command

wq name

wq! name

xit name

( . , . )yank buffer count abbr: ya

( .+1 ) z count

( . ) z type count

! command

( addr , addr ) ! command

( $ ) =

( . , . ) > count flags
( . , . ) < count flags

^D

( .+1 , .+1 )
( .+1 , .+1 ) |

( . , . ) & options count flags

( . , . ) ~ options count flags