Vim can be divided into three modes, command mode, insert mode, visual mode.
First, the command mode
At the beginning of the Vim design, the entire text editor is made with a keyboard rather than a mouse, and almost every key on the keyboard has a fixed usage. Vim creators want users to do most of the editing in the command mode, the mode is designed as the default mode, the beginner opens vim, if the input word directly, the result will drip noise, this is because vim the user input words understood as the command.
The biggest obstacle to a beginner's vim is in command mode. Cursor movement, copy and paste, find replace, exit save ..., each operation corresponds to a command in vim.
Second, insert mode
In the Insert mode, we can input, delete and modify the text content.
Once the cursor is positioned in the correct position in command mode, use the following command to enter into insert mode.
i 在光标左侧插入正文
a 在光标右侧插入正文
o 在光标所在行的下一行增添新行
O 在光标所在行的上一行增添新行
I 在光标所在行的开头插入
A 在光标所在行的末尾插入
Vim Base operation