When using Linux vim command to open the file, a message always appears as shown below, because of the presence .swp caused by temporary files.

.swp, vim in swp ie swap (swap partition) shorthand, is a hidden temporary files generated when vim to edit files to back up the contents of the buffer.
If the file is normal exit, the file will be automatically deleted.
If the file is a non-normal exit, such as time-out to exit the terminal or use Ctrl + Z to exit vim, it will generate a .XXX (file name) .swp files, and ask at each edit.
Use ls -a command to see if there is .swp file and use the rm -f .xx.swp delete the file, you can solve the problem when an editor asked.
I. Description of the problem Second, the cause of the problem When I vim / etc / profile command to view environment variables appear above tips, troubleshooting as follows: ! Carefully read the tips...
About swp file: Using vi, often able to see swp this document, then this document is how to generate it. When you open a file, vi will generate that. (Filename) swp file for a rainy day, assuming you ...
in vim editing process under Linux, for some reason abnormal exit the file being edited, edit the file again, it will appear the following prompt: file is actually using vim editor to copy a temporary...
Swap file ".hive-site.xml.swp" already exists 1. Use the command [hadoop@slaver1 conf]$ ls -la to find hidden files, and then delete the reported error files. [hadoop@slaver1 conf]$ rm -rf ....
During the vim editing process under Linux, the file being edited is abnormally exited for some reason. When the file is edited again, the following prompt will appear: Using vim to edit a file is act...
During the vim editing process under Linux, the file being edited is abnormally exited due to some reason. When the file is edited again, the following prompt will appear: Don't panic in the above sit...
Programming under Linux will inevitably open multiple vim editing. If the same file was not saved during the last editing, it will appear the next time you want to edit: the reason: Using vim to edit ...
Programming under Linux will inevitably open multiple vim to edit the same file together, then save again and it will appear: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anywa...
During the VIM editing process under Linux, the file is edited by an exception exiting the file again, then edit the file again: Using the VIM Editing file is actually a first Copy a temporary ...
Edit Profile Exit, then edit again, receive a prompt: Restore the original file Re-edit....