HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)
s
sh-posix(1) sh-posix(1)
If motion is c, the entire line is deleted.
C Delete from the current character through the end of line and enter insert mode.
Equivalent to c$.
S Equivalent to cc.
[count]dmotion
d[count]motion
Move cursor to the character position specified by motion, deleting all characters
between the original cursor position and the new position. If motion is
d, the entire
line will be deleted.
D Delete from the current character through the end of line. Equivalent to
d$.
i Enter insert mode before the current character.
I Enter insert mode before the beginning of the line. Equivalent to the two-character
sequence
0i.
[count]P Insert the previous text modification before the cursor.
[count]p Insert the previous text modification after the cursor.
R Enter insert mode and replace characters on the screen with characters you type,
overlay fashion.
[count]rc Replace the current character with c.
[count]x Delete the current character.
[count]X Delete the preceding character.
[count]. Repeat the previous text modification command.
~ Invert the case of the current character and advance the cursor.
[count]_ Append the count word of the previous command at the current cursor location and
enter insert mode at the end of the appended text. The last word is used if count is
omitted.
* Append an * to the current word and attempt file name generation. If no match is
found, ring the bell. If a match is found, replace the word with the matching string of
file names and enter insert mode.
escape
\ Attempt file name completion on the current word. Replace the current word with
the longest common prefix of all file names matching the current word with an aster-
isk appended. If the match is unique, append a / if the file is a directory or append a
space 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
put them into the delete buffer. The text and cursor are unchanged.
Y Yank 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 Execute the command fc -e ${VISUAL:-${EDITOR:-vi}}
count in the input
buffer. If count is omitted, the current line is used. This executes an editor with the
current line as the input "file". When you exit from the editor, the result is executed.
^L Line feed and print current line.
^J Execute the current line, regardless of mode (newline).
^M Execute the current line, regardless of mode (return).
HP-UX 11i Version 3: February 2007 − 25 − Hewlett-Packard Company 267