VI is the standard editor for UNIX and Linux systems. Once you learn it, you will be in the world of Linux. Basically VI can be divided into three states, namely the command mode, insert mode, and the bottom line mode.
The VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions. Because the VI editor is exactly the same for any version of UNIX and Linux systems, you can learn more about it in any other place where VI is introduced. VI is also the most basic text editor in Linux, after learning it, you will be in the world of Linux unimpeded.
Basic ConceptsEditBasically, vi can be divided into three states, namely command mode, insert mode (and bottom line mode), and the function of each mode is as follows:1) Command modecontrols the movement of the screen cursor, the deletion of characters, words, or lines, moves the copied section and enters insert mode, and bottom line mode. 2) Insert modeonly in the Insert mode, you can do text input, press ESC to return to command mode. 3) Bottom line modeSave or Exit VI, or you can set the editing environment, such as finding a string and listing line numbers. However, we generally simplify the use of VI into two modes, that is, the bottom row mode is also counted in the command mode. For details, please see Baidu Encyclopedia: Http://baike.baidu.com/subview/27682/6112795.htm#1
Vi (Standard editor for UNIX and Linux systems)