
ksh(1)ksh(1)
Motion Edit Commands
These commands move the cursor. The designation [count] causes a repetition of the command the cited number of times.
[count]l | Cursor forward (right) one character. | |
[count]w | Cursor forward one alphanumeric word. | |
[count]W | Cursor to the beginning of the next word that follows a blank. | |
[count]e | Cursor to end of word. | |
[count]E | Cursor to end of the current | |
[count]h | Cursor backward (left) one character. | |
[count]b | Cursor backward one word. | |
[count]B | Cursor to preceding blank separated word. | |
[count] | Cursor to column count. Default is 1. | |
[count]fc | Find the next character c in the current line. | |
[count]Fc | Find the previous character c in the current line. | |
[count]tc | Equivalent to | f followed by h. |
[count]Tc | Equivalent to | F followed by l. |
[count]; | Repeats the last single character ®nd command, f, F, t, or T. | |
[count], | Reverses the last single character ®nd command. | |
0Cursor to start of line.
^Cursor to ®rst nonblank character in line.
$ | Cursor to end of line. |
Search Edit Commands | |
These commands access your command history. | |
[count]k | Fetch previous command. Each time k is pressed, the next earlier command in |
| the history list is accessed. |
[count]- | Equivalent to k. |
[count]j | Fetch next command. Each time j is entered, the next later command in the his- |
| tory list is accessed. |
[count]+ | Equivalent to j. |
[count]G | The command number count is fetched. The default is the ®rst command in the |
| history list. |
/string | Search backward through history for a previous command containing string. |
| string is terminated by a "Return" or |
| matched line must begin with string. If string is null, the previous string is used. |
?string | Same as / but search in the forward direction. |
n | Search for next match of the last pattern to / or ? commands. |
N | Search for next match of the last pattern to / or ?, but in reverse direction. |
Search history for the string entered by the previous / command.
Text Modi®cation Edit Commands
These commands modify the line.
aEnter input mode and enter text after the current character.
AAppend text to the end of the line. Equivalent to $a.
[count]cmotion
c[count]motion Move cursor to the character position speci®ed by motion, deleting all characters
between the original cursor position and new position, and enter input mode. If motion is c, the entire line is deleted and input mode entered.
CDelete the current character through the end of line and enter input mode. Equivalent to c$.
SEquivalent to cc.
DDelete the current character through end of line. Equivalent to d$.
[count]dmotion
d[count]motion Move cursor to the character position speci®ed by motion, deleting all characters
between the original cursor position and new position. If motion is d, the entire line is deleted.
iEnter input mode and insert text before the current character.
IInsert text before the beginning of the line. Equivalent to the
[count]P | Place the previous text modi®cation before the cursor. |
[count]p | Place the previous text modi®cation after the cursor. |
REnter input mode and replace characters on the screen with characters you type in overlay fashion.
− 20 − | Section 1−415 |
k