1. vi and vim introduction
vim is an upgraded version of vi. It is a file editor under Linux system environment
vim has three modes: namely, command mode; edit mode; line mode. Three kinds can be switched with each other
(Picture from the network)
2. Go to the vim editor
vim filename (Note: If the file name exists, open the file; if the file name does not exist, will still be able to enter the vim editor, save and exit creates the name of the file
3. Exit
Before exiting, if the edit mode, press [Esc] key on the keyboard
1) exit without saving: q
2) save and exit: wq
3) Force Quit without saving: q!
4. typing