During file Editing Using vim, remote login to the server fails due to network disconnection. After the network connection is restored, log on to the server again. VI opens the file and sends an alarm. The following message is displayed:
E325: Attention
Found a swap file by the name ". CPU. Sh. SWP"
Owned by: Work dated: Fri Nov 23 11:17:23 2012
File Name :~ Work/fanbo/Server/dialogue/CPU. Sh
Modified: Yes
User name: Work Host Name: db-testing-ps6056.db01.baidu.com
Process ID: 16358
While opening file "CPU. Sh"
Dated: Fri Nov 23 16:35:41 2012
Newer than swap file!
(1) another program may be editing the same file.
If this is the case, be careful not to end up with two
Different instances of the same file when making changes.
Quit, or continue with caution.
(2) an edit session for this file crashed.
If this is the case, use ": recover" or "vim-r CPU. Sh"
To recover the changes (see ": help recovery ").
If you did this already, delete the swap file ". CPU. Sh. SWP"
To avoid this message.
Swap File ". CPU. Sh. SWP" already exists!
[O] pen read-only, (e) dit anyway, (R) Ecover, (Q) uit, (a) bort, (d) elete it:
Cause analysis, because the buffer file is generated during the editing process. If ": W" is not executed, and the network connection is disconnected, A hidden file ending with the file name SWP is generated in the current directory. Deleting this file will not trigger an alarm if you use VI again, but the file will be rolled back to the status before editing.