---restore content starts---
Write the code in Xshell, if you need to edit the code, you can enter vim+ xxx.py, enter the VIM editing interface
The xxx.py here represents a python storage file with a. py suffix.
1. Insert character input I can type or SHIFT + I
2. Save, but do not exit vim:w
3. Save and exit Vim:wq
4. Exit vim, but do not save changes: q!
5. Save with a different file name: w filename
6. Save and overwrite the original file in an existing file: w! FileName
View mode in 7.vim, select the content to be commented on Ctrl + V
8. Insert # in front of the line to be commented (shown in the first line) SHIFT + #
9.ESC; Press ESC at least 2 times, and all selected rows are preceded by a #
---restore content ends---
VIM Programming Insert save do not exit save to exit without saving Save as another file name overwrite existing file