vi Control Mode Commands
The material in this section also appears in Learning the bash Shell by Cameron Newham (O’Reilly).
Table A-24 shows a complete list of readline vi control mode commands.
Table A-24. vi mode commands
Command | Meaning |
---|---|
| Move left one character. |
| Move right one character. |
| Move right one word. |
| Move left one word. |
| Move to beginning of next nonblank word. |
| Move to beginning of preceding nonblank word. |
| Move to end of current word. |
| Move to end of current nonblank word. |
| Move to beginning of line. |
. | Repeat the last |
^ | Move to first nonblank character in line. |
$ | Move to end of line. |
| Insert text before current character. |
| Insert text after current character. |
| Insert text at beginning of line. |
| Insert text at end of line. |
| Overwrite existing text. |
| Delete one character backward. |
| Delete one character forward. |
| Delete one word backward. |
| Delete one word forward. |
| Delete one nonblank word backward. |
| Delete one nonblank word forward. |
| Delete to end of line. |
| Delete to beginning of line. |
| Equivalent to |
| Equivalent to |
| Equivalent to |
| Equivalent to |
| Equivalent to |
| Equivalent to |
| Move backward one line. |
| Move forward one line. |
| Move to line given by repeat count. |
/ | Search forward for
|
? | Search backward ... |
Get bash Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.