MPE/iX Shell and Utilities Reference Manual, Vol 2
vi(1) MPE/iX Shell and Utilities vi(1)
ed in the command list, and the trailing period (.) may be omitted at the end of the
list. For example,
g/rhino/a\
hippo
appends the single line hippo to each line containing rhino. The total length of a
global command list is limited (see LIMITS).
You can use any non-alphabetic character to delimit pat instead of the slash (/).
[.] i[nsert][!]
enters Ex
INSERT mode, reads text and places it before the specified line; otherwise,
this is identical to the append command. This command may not be entered from Vi
mode.
[.,.+1] j[oin][!][count][flags]
joins together the lines of text within the range. Unless an exclamation mark (!)is
specified, all white space between adjacent joined lines is deleted. Two spaces are
provided if the previous line ended in a period (.); zero spaces if the joined line be-
gins with a closing parenthesis ()); and one space otherwise.
[.] k x is synonymous with the mark command.
[.,.] l[ist][count][flags]
displays the line range in a visually unambiguous manner. This command displays
tabs as ˆI, and the end of lines as $. The only useful flag is #, for line numbering.
The current line indicator points to the last line displayed.
map[!][lhs rhs]
defines macros for use in Vi. The lhs is a string of characters; whenever that string is
typed exactly, vi behaves as if the string rhs had been typed. If lhs is more than one
character long, none of the characters are echoed or acted upon until either a charac-
ter is typed that isn’t in the lhs (in which case all the characters up to that point in the
lhs are run) or the last character of lhs is typed. If the variable remap is set, rhs it-
self may contain macros. If the flag ! is specified, the map applies within Vi
INSERT
mode; otherwise it applies to command mode. A map command with no arguments
lists all macros currently defined.
[.] ma[rk] x
records the specified line as being marked with the single lowercase letter x. The line
may then be addressed at any point as ´x.
[.,.] m[ove] addr [flags]
moves the specified line range after the addr given. If addr is zero, the text is moved
to the start of the file. The current line indicator is set to the last line moved.
Commands and Utilities 1-665