[Use] exception handling vim vim, deleting the swap file

1. Create a " helloworld.py " file and edit the content.

 

2, if the vim editor abnormal exit (eg: forced to close the terminal, system crash, power failure ...), on disk would have saved swap file .  

 

3, the next time you use vim editor to edit the file, you will see information about the screen. Press the " D key ," will be will be " .swp " file ending in the suffix deleted.

Note: The adjusted input method for the text input .

 

 

Guess you like

Origin www.cnblogs.com/greamrod/p/12531209.html