1

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

LiberHome
409 声望1.1k 粉丝

有问题 欢迎发邮件 📩 liberhome@163.com