There are a lot of text editors, and more common is VI and VIM. VI is the most commonly used editor in the Linux system, and the most basic text editing tool, although there is easy operation as the graphical interface editor, but it is not inferior to other editors. So what is the three modes of the Linux Vi Editor? The following is a detailed description.
What are the three patterns of the Linux VI editor?
Generally speaking, the three modes of the VI editor refer to: General instruction mode, editing mode, command line mode, the role is as follows:
General instruction mode
Taking a VI opens a file directly into the general instruction mode, this is the default mode, or it can be called a general mode. In this mode, you can use the up and down, right buttons to move the cursor, you can use the delete character or delete the whole line to process the file content, or use copy, paste to process your file data.
The edit mode can be edited, and any one of I, I, O, O, A, A, R, R, etc. can be entered into the editing mode. If you want to go back to the general instruction mode, you must press the ESC button to exit the edit mode.
Command line mode
In the general mode, enter any of:, /,?, You can move the cursor to the bottom line. In this mode, you can provide the action of your search, read, store, a large number of substitute characters, away from VI, display line numbers, etc., is achieved in this mode.