Question : VI Issue

Hi Folks,

Whenever I try to open this file 'mtable' in VI editor, it shows this message. Can you tell me what is the correct way to avoid this error?


E325: ATTENTION
Found a swap file by the name ".mtable.swp"
          owned by: ojk   dated: Fri Feb  9 14:08:08 2007
         file name: ~ojk/mtable
          modified: YES
         user name: ojk   host name: jester
        process ID: 5170
While opening file "mtable"
             dated: Mon Feb 12 00:51:40 2007
      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 mtable"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".mtable.swp"
    to avoid this message.

Swap file ".mtable.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, (D)elete it:


Thanks,
Ashok

Answer : VI Issue

This is not an error. Your previous instance of vi crashed while editing mtable. Did you try any of the options given like recover or delete?
Random Solutions  
 
programming4us programming4us