The vi editing mode has two typing modes.
The modes are:
- Input mode. When you enter a command, the vi editor is in input
mode.
- Control mode. Press the Esc key to enter control mode.
Most control commands accept an optional repeat
Count parameter
prior to the command. When in vi mode on most systems, canonical processing
is initially enabled. The command is echoed again if one or more of the following
are true:
- The speed is 1200 baud or greater.
- The command contains any control characters.
- Less than one second has elapsed since the prompt was printed.
The Esc character terminates canonical processing for the remainder of
the command, and you can then modify the command line. This scheme has the
advantages of canonical processing with the type-ahead echoing of raw mode.
If the
viraw option is also set, canonical processing is always disabled.
This mode is implicit for systems that do not support two alternate end-of-line
delimiters and might be helpful for certain terminals.
Available vi edit commands are grouped into categories. The categories
are as follows: