Vi(m) error E325: ATTENTION

Solution Verified - Updated -

Issue

  • When attempting to edit a file with vi(m), a message similar to the following is displayed:
E325: ATTENTION
Found a swap file by the name ".test.conf.swp"
          owned by: root   dated: Wed Jan 23 09:41:07 2013
         file name: /root/test.conf
          modified: YES
         user name: root   host name: rhelHost
        process ID: 19187
While opening file "test.conf"
             dated: Wed Jan 23 07:58:34 2013

(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 test.conf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".test.conf.swp"
    to avoid this message.
"test.conf" 34L, 1066C
Press ENTER or type command to continue

Environment

  • Red Hat Enterprise Linux all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content