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

k
ksh(1) ksh(1)
d[count]motion Move cursor to the character position specified by motion, deleting all characters
between the original cursor position and new position. If motion is
d, the entire
line is deleted.
i Enter input mode and insert text before the current character.
I Insert text before the beginning of the line. Equivalent to the two-character
sequence
0i.
[count]
P Place the previous text modification before the cursor.
[count]
p Place the previous text modification after the cursor.
R Enter input mode and replace characters on the screen with characters you type
in overlay fashion.
[count]
rc Replace the current character with c.
[count]
x Delete current character.
[count]
X Delete preceding character.
[count]
. Repeat the previous text modification command.
[count]
˜ Invert the case of the current character and advance the cursor.
[count]
_ Causes the count word of the previous command to be appended at the current
cursor location and places the editor in input mode at the end of the appended
text. The last word is used if count is omitted.
* Appends an * to the current word and attempts file name generation. If no
match is found, the bell rings. If a match is found, the word is replaced by the
matching string and the command places the editor in input mode.
ESC
\ Attempt file name completion on the current word. Replaces the current word
with the longest common prefix of all filenames matching the current word with
an asterisk appended. If the match is unique, a / is appended if the file is a
directory and a space is appended if the file is not a directory.
Other Edit Commands
[count]
ymotion
y[count]motion Yank current character through character that motion would move the cursor to
and puts them into the delete buffer. The text and cursor are unchanged.
Y Yanks from current position to end of line. Equivalent to y$.
u Undo the last text modifying command.
U Undo all the text modifying commands performed on the line.
[count]v Returns the command
fc -e ${VISUAL:-${EDITOR:-vi}} count in the
input buffer. If count is omitted, the current line is used.
^L Line feed and print current line. Has effect only in control mode.
^J (New line) Execute the current line, regardless of mode.
^M (Return) Execute the current line, regardless of mode.
# Equivalent to I# followed by Return. Sends the line after inserting a # in
front of the line and after each newline. Useful for inserting the current com-
mand line in the history list without executing it.
= List the filenames that match the current word if an asterisk were appended to
it.
@letter The user’s alias list is searched for an alias by the name _letter and if an alias of
this name is defined, its value is inserted on the input queue for processing.
EXTERNAL INFLUENCES
Section 1442 Hewlett-Packard Company 22 HP-UX 11i Version 2: September 2004