Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (s) sh(1)
i Enters input mode and inserts text before the current character.
I Inserts text before the beginning of the line. Equivalent to 0i.
[count]P Places the previous text modication before the cursor.
[count]p Places the previous text modication after the cursor.
R Enters input mode and replaces characters on the screen with the characters you type,
overlay fashion.
[count]rc
Replaces the count characters, starting at the current cursor position with c and advanc-
ing the cursor.
[count]x Deletes the current character.
[count]X Deletes the preceding character.
[count]. Repeats the previous text modication command.
[count]˜ Inverts the case of the count characters, starting at the current cursor position and
advancing the cursor.
[count]_ Causes the count word of the previous command to be appended and input mode
entered. The last word is used if count is omitted.
* Causes an * (asterisk) to be appended to the current word and lename generation to be
attempted. If no match is found, it sounds the bell. Otherwise, the word is replaced by
the matching pattern and input mode is entered.
\ Filename completion. Replaces the current word with the longest common prex of all
lenames matching the current word with an * (asterisk) appended. If the match is
unique, a / (slash) is appended if the le is a directory; a space is appended if the le is
not a directory.
Miscellaneous vi Commands
[count]ymotion
y[count]motion
Yanks the current character through the character to which motion would move the cur-
sor and puts the characters into the delete buffer. The text and cursor are unchanged.
Y Yanks from current position to the end of line. Equivalent to y$.
u Undoes the last text-modifying command.
U Undoes all the text-modifying commands performed on the line.
[count]v Returns the command fc -e vi count in the input buffer. If count is omitted, the current
line is used.
<Ctrl-l> Performs a linefeed and prints the current line. Effective only in control mode.
<Ctrl-j> Executes the current line, regardless of mode (newline).
<Ctrl-m>
Executes the current line, regardless of mode (enter).
527188-004 Hewlett-Packard Company 833