HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

e
ex(1) ex(1)
If the substitution pattern re is omitted (
s//repl/), the more recently set of either the
substitution string or the scanning string is used (see Regular Expressions above).
If the
s or & forms of the command are used, the substitution pattern defaults to the
previous substitution string and the replacement string defaults to the previous
replacement string used.
If the
sr or ˜ forms of the command are used, the substitution pattern defaults to the
more recently set of either the substitution string or the scanning string and the
replacement string defaults to the previous replacement string used.
The form
s\?repl is equivalent to
s/scan-re/repl/, where scan-re is the previous
scanning string.
The form
s\&repl is equivalent to
s/subs-re/repl/, where subs-re is the previous
substitution string.
suspend su[spend][!]
stop st[op][!]
susp
Suspend the editor job and return to the calling shell.
stop and susp are equivalent
to
suspend. susp is the user process control suspend character, which is typically
the character ˆZ (ASCII SUB) (see stty(1)). This command is disabled if the calling
shell does not support job control or has disabled it.
The work area is written to the current file before the editor is suspended if the
autowrite editor option is set, the readonly editor option is not set, and the work
area has been modified since the last write. To override this action, append the
!
character to the suspend or stop command.
tag ta[g][!] tag
Search the files specified by the
tags editor option (see Editor Options below)
sequentially until a tag definition for tag is found. If tag is found, load the associated
file into the work area and set the current position to the address specified in the tag
definition.
The work area is written to the current file before the new file is loaded if the new file
is different from the current file, the
autowrite editor option is set, the
readonly
editor option is not set, and the work area has been modified since the last write. To
override this action, append the ! character to the command.
If the
tagstack editor option is set, the current file name and line number is pushed
onto the tag stack for later recall with the line mode pop command or the visual mode
^] command.
unabbreviate una[bbreviate
] word
Delete word from the list of abbreviations (see the
abbreviate command above).
undo u[ndo]
Reverse the changes made by the previous editing command. For this purpose,
glo-
bal and visual are considered single commands. Commands that affect the exter-
nal environment, such as write, edit, and next, cannot be undone. An undo can
itself be reversed.
unmap unm[ap][!] key
The macro definition for key is removed (see the
map command above).
version ve[rsion]
Print the current version information for the editor.
visual line vi[sual] type count flags
Enter visual mode at the specified line.
The type can be one of the characters
+, -, .,orˆ, as in the z (window) command, to
specify the position of the specified line on the screen window The default is to place
the line at the top of the screen window.
Section 1276 Hewlett-Packard Company 10 HP-UX 11i Version 2: September 2004