Linux Vim Editor opens the file warning e325: Attention Solution

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.