In Linux when using vim, enter vim xxx.file
Press ESC, you can enter the lower left corner
: w save but do not quit : wq to save and exit : q quit : q ! forced to quit without saving : e abandon all changes, starting with the last saved a file and then edit the command history!