Vi is the standard editor under Unix and Linux systems. It was founded by Bill Joy of the University of California, Berkeley. Basically vi can be divided into three states, namely command mode, insert mode, and bottom line mode. Vi is the most basic text editor in Linux. After learning it, you will have no trouble in the Linux world.
Basically vi can be divided into three states, namely command mode, insert mode and last line mode. The functions of each mode are distinguished as follows:
1) Command mode
Control the movement of the screen cursor, delete characters, words or lines, move and copy a section and enter insert mode , in bottom row mode.
2) Insert mode
Only in insert mode, text input can be done. Press the ESC key to return to the command mode.
3) Last line mode
Save the file or exit vi, you can also set the editing environment, such as searching for strings and listing line numbers.
However, generally when we use vi, we simplify vi into two modes, that is, the bottom line mode is also included in the command mode.
The above is the detailed content of What does vi mean in linux?. For more information, please follow other related articles on the PHP Chinese website!