Three modes of Vim
- command mode
- input mode
- Bottom Line Command Mode
command mode
For example, we directly enter vim 1.txt
on the terminal on the mac, so the system will find out whether the txt file exists, open it if it exists, and create one if it does not exist.
input mode
The command mode is entered by default at the beginning. At this time, we can enter i on the keyboard to enter the insert input mode. In the input mode, we can enter the content.
When we are done typing, we can press the Esc key to exit the input mode and return to the command mode.
Bottom Line Command Mode
We can enter the bottom line command mode by typing a colon in command mode, and then typing w to save our changes.
Then we can also type q to quit vim , of course, you can also directly
:wq
save and exit the file.
Three modes of conversion
Reference: bilibili
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。