Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
Found a swap file by the name ".ptr.c.swp"
          owned by: honey   dated: Sat Oct 26 12:49:38 2013
         file name: ~honey/ptr.c
          modified: YES
         user name: honey   host name: honey-desktop
        process ID: 2542
While opening file "ptr.c"
             dated: Sun Nov  3 09:05:49 2013
      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 ptr.c"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".ptr.c.swp"
    to avoid this message.
"ptr.c" 9L, 136C
Press ENTER or type command to continue
share|improve this question
Does it really happen with any file? Try with "vi abcdefg.c". Should happen only for files being edited when a previous vi session crashed. –  Rmano Jan 14 at 21:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.