Motion edit commands
The motion edit commands for the Korn shell are described below.
Motion edit commands move the cursor as follows:
| Item | Description |
|---|---|
| [Count]l | Moves the cursor forward (right) one character. |
| [Count]w | Moves the cursor forward one alphanumeric word. |
| [Count]W | Moves the cursor to the beginning of the next word that follows a blank. |
| [Count]e | Moves the cursor to the end of the current word. |
| [Count]E | Moves the cursor to the end of the current blank-separated word. |
| [Count]h | Moves the cursor backward (left) one character. |
| [Count]b | Moves the cursor backward one word. |
| [Count]B | Moves the cursor to the previous blank-separated word. |
| [Count]| | Moves the cursor to the column specified by the Count parameter. |
| [Count]fc | Finds the next character c in the current line. |
| [Count]Fc | Finds 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 for the number of times specified by the Count parameter the last single-character find command: f, F, t, or T. |
| [Count], | Reverses the last single-character find command the number of times specified by the Count parameter. |
| 0 | Moves the cursor to the start of a line. |
| ^ | Moves the cursor to the first nonblank character in a line. |
| $ | Moves the cursor to the end of a line. |