Use Vim to edit documents today after connecting to CentOS with Xshell
Because there was a temporary closure and no saving.
Once again open the VIM prompt to restore, but each time you open the file to restore, so found the following methods and the principle of vim work
Using VIM to edit the file is actually to copy a copy to the temporary file and map to the memory for you to edit, you edit the temporary file, not the source file, until you: W Save the temporary file to the source file, until you: Q exit to delete the temporary file.
Each time the VIM boot detects if there is a temporary file, there is a question about how to handle it.
You open two vim to operate the same file, the second VIM detects a temporary file when it starts, and asks you what to do with it.
If you have self-confidence, then R recover files and: Wq save exit, after ll-a Show hidden files, rm delete. The file name can be deleted.
Vim Delete temp file