Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (d - f) ex(1)
indicated by the tag. This subcommand is affected by the autowrite, tags, and writeany
editor options.
The tag subcommand searches for tagstring in the tag le referred to by the tags editor
option until a reference to tagstring is found. The le pointed to by this reference is
loaded into the buffer, and the current line is set to the rst occurrence of the pattern
specied in the tags le associated with the supplied tagstring. If the tags le contained
a line number reference, the current line is set to that line. If the pattern or line number
is not found, the subcommand writes an error message. If a le referred to by the tags
editor option does not exist or is not readable, the subcommand also writes an error mes-
sage.
una[bbrev] word
Deletes word from the list of abbreviations, as described by the
abbrev subcommand.
u[ndo] Reverses the changes made by the previous editing subcommand (one that changes the
contents of the buffer). For this purpose, global and visual are considered single sub-
commands. An undo can itself be reversed. Commands that affect the external environ-
ment, such as write, edit, and next cannot be undone.
unm[ap][!] x
If no ! (exclamation point) is specied, removes the command-mode macro denition for
x; otherwise, removes the input-mode macro denition for x. See the map subcommand.
[line] vi[sual][type][count][flags]
Enters visual mode with the current line set to line. The type argument is optional, and
can be a - (minus sign), . (period), + (plus sign), or ˆ (circumex), as in the z subcom-
mand, to specify the position of the specied line on the screen window. (The default is
to place the line at the top of the screen window.) The count argument species the
number of lines that is initially written; the default is the value of the window editor
option. The Q subcommand exits visual mode. (For more information about the Q sub-
command, see the vi reference page.)
[range] w[rite][!][>>][file]
[range] w[rite][!][file]
[range] wq[!][>>][file]
Writes the specied lines (the whole buffer, if range is not specied) out to the le
represented by pathname le, writing to standard output the number of lines and bytes
written.
If le is specied and is not the current le, and the le named by le exists, then the
write fails. If the current le has been changed by the le subcommand and that le
exists, the write fails. In either case, you can force the write by appending the ! (excla-
mation point) character to the subcommand name. You can append to an existing le by
appending >> to the subcommand name.
If the le argument is preceded by a ! (exclamation point) character, the program named
in the SHELL environment variable is invoked with le as its second argument, and the
specied lines are passed as standard input to the subcommand. The ! in this usage must
be separated from the write subcommand by at least one space character. You can over-
ride the special meaning of ! by escaping it with a \ (backslash) character. This subcom-
mand is affected by the writeany and readonly editor options.
The subcommand wq is equivalent to a w followed by a q; wq! is equivalent to w! fol-
lowed by q. If the current buffer has no pathname associated with it, the write subcom-
mand fails.
527188-003 Hewlett-Packard Company 3113