VIM-- save and exit commands

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!

 

Guess you like

Origin www.cnblogs.com/lwcode6/p/11537005.html
Recommended