
ex(1) | ex(1) |
| 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 |
| modi®er 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 ®le. ! 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 speci®ed 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 ®rst line addressed by the range. |
| When only a line or range is speci®ed with no command, the implied command shall be |
| either print, list, or number ( p, l, or #). The command selected shall be the last of |
| these three commands to be used. When no range or count is speci®ed and the command |
| 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, ®le 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 characters in the Synopsis command word preceding the [), the full command (all characters shown for the command word, omitting the [ and ]), or any subset of the characters of the full command down to the abbreviation.
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 speci®ed line. If line 0 is speci®ed, | ||
| 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 speci®ed 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. If directory is omitted, the value of the | ||
| HOME environment variable is used. If the work area has been modi®ed since the last | ||
| write and the name of the ®le 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 this | ||
| case, append the character ! to the command. |
| |
copy | range co[py] line ¯ags |
| |
| range t line ¯ags |
|
|
− 5 − | Section 1−245 | ||
e