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

e
ex(1) ex(1)
be also one unnamed buffer, which is the repository for all text deleteed or yanked when
no buffer is specified.
There are also numbered buffers, 1 through 9, which shall be accessible only from visual
mode. These buffers are special in that, in the visual mode, when deleted text is placed in
the unnamed buffer, it also shall be placed in buffer 1, the previous contents buffer 1
shall be placed in buffer 2 and so on. Any text in the buffer 9 shall be lost. Text that is
yanked into the unnamed buffer shall not modify the numbered buffers. Text cannot be
placed directly into the numbered buffered, although it can be retrieved from them by
using a visual mode "put" command with the buffer name given as s number. When the
buffer modifier is not used in the commands below, the unnamed buffer shall be the
default.
word XPG4 Feature. In the POSIX Locale, a
word consists of a maximal sequence of letters,
digits and underscores, delimited at both ends by characters other than letters, digits, or
underscores, or by the beginning or end of a word or the file.
! A character that can be
appended to the command to modify its operation, as detailed in the individual command
descriptions.
If both a
count and range is specified for a command that uses them, the number of
lines affected shall be taken from the
count value rather than the range. The starting
line for the command shall be taken to be the first line addressed by the range.
When only a
line or range is specified with no command, the implied command shall
be either print, list,ornumber ( p, l,or#). The command selected shall be the last
of these three commands to be used. When no range or count is specified and the com-
mand line is a blank line, the current line shall be written, and the current line shall be
set to .+1.
Zero or mode <blank> characters can precede or follow the addresses, count or command
name. Any object following a command name (such as buffer, file etc) that begins with an
alphabetic character shall be separated from the command name with at least one
<blank>.
For each of the commands listed below, the command can be entered as the abbreviation (those charac-
ters in the Synopsis command word preceding the [), the full command (all characters shown for the com-
mand word, omitting the [ and ]), or any subset of the characters of the full command down to the abbre-
viation.
abbreviate ab[breviate] word replacement
Add the named abbreviation to the current list. In visual mode, if word is typed as a
complete word during input, it is replaced by the string replacement .
append line a[ppend][!]
Enter input mode; the input text is placed after the specified line. If line 0 is
specified, the text is placed at the beginning of the work area. The last input line
becomes the current line, or the target line if no lines are input.
Appending
! to the command toggles the autoindent editor option setting for this
insert only.
args ar[gs]
Prints the argument, placing the current argument between
[ and ].
change range c[hange][!] count
Enter input mode; the input text replaces the specified lines. The last input line
becomes the current line; if no lines are input, the effect is the same as a delete.
Appending
! to the command toggles the autoindent editor option setting for this
insert only.
chdir chd[ir][!][directory ]
cd[!][ directory ]
Change the working directory to directory .Ifdirectory is omitted, the value of the
HOME environment variable is used. If the work area has been modified since the last
write and the name of the file being edited does not begin with a slash (/), a warning
is issued and the working directory is not changed. To force a change of directory in
Section 1254 Hewlett-Packard Company 5 HP-UX 11i Version 2: August 2003