Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

vi(1) OSS Shell and Utilities Reference Manual
>L Shifts all lines from the cursor to the end of the screen to the right. (The > character
describes a range upon which the L subcommand acts.)
~ Changes the letter at the cursor to the opposite case.
Copying and Moving Text
Use the following subcommands in Command mode. An incomplete subcommand can be can-
celled by pressing <Esc>.
p (P) Puts back text in the undo buffer after (before) the cursor.
"xp(xP) Puts back text from the buffer x after (before) the cursor. You must precede the charac-
ter x with a double quote.
"xdobject
Deletes object into the buffer x. You must precede the character x with a double quote.
yobject Yanks object into the undo buffer (for example, yw to yank a word).
"xyobject
Yanks object into buffer x. You must precede the character x with a double quote.
Y Places the line in the undo buffer.
Restoring and Repeating Changes
Use the following subcommands in Command mode. An incomplete subcommand can be can-
celled by pressing <Esc>.
u Undoes the last command.
U Restores the current line if the cursor has not left the line since the last change.
. Repeats the last change or increments the np command.
Note that this command is not meant for use with a macro. Enter @@ to repeat a
macro.
"np Retrieves the nth last delete of a complete line or block of lines. You must precede the
character n with a double quote.
Saving Changes to a File
Use the following subcommands in Command mode. An incomplete subcommand can be can-
celled by pressing <Esc>. If you are using these subcommands within the ex editor, you do not
need to type the : (colon).
:w Writes the editing buffer contents to the original le.
:w file Writes the editing buffer contents to the named le.
:w! file Overwrites le with the editing buffer contents.
Interrupting, Cancelling, and Exiting vi
Q Enters the ex editor in Command mode.
q Enters the ex editor in Command mode if no lename was specied on the vi command
line when the program was invoked.
ZZ Exits vi, saving changes, if any were made.
1014 Hewlett-Packard Company 527188-007