MPE/iX Shell and Utilities Reference Manual, Vol 2

vi(1) MPE/iX Shell and Utilities vi(1)
Ex Commands
These commands can be entered as shown in Ex mode. In Vi mode, they must be preceded by
the colon (:) character.
ab[breviate][lhs rhs]
indicates the string lhs is to be interpreted as an abbreviation for rhs. If you enter lhs
surrounded by white space in Vi
INSERT mode, it is automatically changed into rhs.If
you do not specify any arguments for the ab command, it displays the abbreviations
that are already defined.
[.] a[ppend][!]
enters Ex
INSERT mode. Text is read and placed after the specified line. An input line
consisting of one period (.) leaves INSERT mode without inserting the period. If you
specify an address of zero, text is inserted before the first line of the file. The current
line indicator points to the last line typed.
If an exclamation mark (!) is specified, the autoindent option is toggled during
input. This command may not be invoked from Vi mode.
ar[gs] displays the current list of files being edited. The current file is shown enclosed by
square brackets.
cd[!][path]
changes the current directory to path. If you omit path, cd sets the current working
directory to the directory identified by the environment variable
HOME
(usually, your
home directory). If you have modified the buffer since the last write, vi displays a
warning message. You can override this behavior by including the exclamation mark
(!).
[.,.] c[hange][!][count]
deletes the line range given and then enters
INSERT mode. If an exclamation mark (!)
is specified, autoindent is toggled during input. This command may not be in-
voked from Vi mode.
chd[ir][!][path]
is the same as cd.
[.,.] co[py] addr [flags]
copies the line range given after addr.Ifaddr is zero, the lines are inserted before the
first line of the file. The current line indicator points to the last line of the inserted
copied text.
Commands and Utilities 1-663