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 for
|
| Repeat search forward. |
| Repeat search backward. |
| Move right to next occurrence of
|
| Move left to previous occurrence of
|
| Move right to next occurrence of
|
| Move left to previous occurrence of
|
; | Redo last character finding command. |
, | Redo last character finding command in opposite direction. |
Do filename completion. | |
* | Do wildcard expansion (onto command line). |
= | Do wildcard expansion (as printed list). |
~ | Invert (twiddle) case of current character(s). |
Append last word of previous command, enter input mode. | |
Ctrl+L | Start a new line and redraw the current line on it. |
# | Prepend # (comment character) to the line and send it to history. |
3.147.84.169