guys:
My PC (ubuntu) just restarted by itself due to the (stupid) overheat issue, again (I couldn't find a solution on that in a year..)

but regardless, I had a file that I had been editing for quite a while.
all of a sudden the PC reloaded, now I'm wondering how can I recover that file.

I tried both of the following method , but none of them give me the right file.

one thing I've notice that if I'm in different folder, vim -r give me different files. I tried to change to different folder and invoke vim -r, but still failed to find the right one (per the timestamp) for me...

any other good ideals?

maybe the last resort, do I have to grep from the whole harddisk for this?

and, what's the best practice to solve this issue in the future (lesson learned for me: always use a named buffer ) ?


1) :recover

Swap files found:
   Using specified name:
1.    .swa
          owned by: ping   dated: Fri Jan 21 17:26:35 2011
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 14418
2.    .swb
          owned by: ping   dated: Wed Dec 29 14:32:22 2010
         file name: [No Name]
          modified: no
         user name: ping   host name: 640g-laptop
        process ID: 7874
3.    .swc
          owned by: ping   dated: Fri Dec 17 17:05:02 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 2735
4.    .swd
          owned by: ping   dated: Mon Dec  6 17:57:06 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 22947
5.    .swe
          owned by: ping   dated: Fri Oct 29 08:15:23 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 20799
6.    .swf
          owned by: ping   dated: Thu Dec  2 13:05:32 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 5370
7.    .swg
          owned by: ping   dated: Sat Oct 23 11:38:18 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 4930
8.    .swh
          owned by: ping   dated: Sat Oct 23 06:40:55 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 3119
9.    .swi
          owned by: ping   dated: Sat Oct 16 23:28:22 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 13572
10.    .swj
          owned by: ping   dated: Sat Oct 23 06:35:33 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 4930
11.    .swk
          owned by: ping   dated: Tue Oct 12 10:15:05 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 13672
12.    .swl
          owned by: ping   dated: Sun Oct 10 06:44:29 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 26777
13.    .swm
          owned by: ping   dated: Wed Oct  6 00:44:37 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 29373
14.    .swn
          owned by: ping   dated: Tue Oct  5 03:59:02 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 29373
15.    .swo
          owned by: ping   dated: Sun Sep 26 09:34:44 2010
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 3824
16.    .swp
          owned by: ping   dated: Fri Apr 20 15:59:12 2012
         file name: [No Name]
          modified: YES
         user name: ping   host name: 640g-laptop
        process ID: 17594
   In directory ~/tmp:
      -- none --
   In directory /var/tmp:
      -- none --
   In directory /tmp:
      -- none --

Enter number of swap file to use (0 to quit): 0



2) ping@640g-laptop:~$ vim -r

Swap files found:
   In current directory:
1. .%.swp

owned by: ping dated: Mon Jan 9 14:45:26 2012

file name: ~ping/%

modified: YES

user name: ping host name: 640g-laptop

process ID: 27934

2. .Narrow_Region_3_VOOM19.swp

owned by: ping dated: Thu Jan 3 08:18:35 2013

file name: ~ping/Narrow_Region_3_VOOM19

modified: YES

user name: ping host name: 640g-laptop

process ID: 13556

3. .RZ2-l2vpn-lsonly-3.ol.swp

owned by: ping dated: Thu Sep 15 18:37:41 2011

file name: ~ping/RZ2-l2vpn-lsonly-3.ol

modified: no

user name: ping host name: 640g-laptop

process ID: 27006

4. .a.scr.swo

owned by: ping dated: Tue Jun 14 11:03:25 2011

file name: ~ping/a.scr

modified: no

user name: ping host name: 640g-laptop

process ID: 4253

5. .au-lsof.html.swo

owned by: ping dated: Tue Jan 10 19:01:20 2012

file name: ~ping/au-lsof.html

modified: YES

user name: ping host name: 640g-laptop

process ID: 9142

6. .mailcap.swp

owned by: ping dated: Thu Dec 29 14:04:17 2011

file name: ~ping/.mailcap

modified: no

user name: ping host name: 640g-laptop

process ID: 24540

7. .muttrc-gmail-gogetitok.swo

owned by: ping dated: Tue Jan 10 19:01:20 2012

file name: ~ping/.muttrc-gmail-gogetitok

          modified: no
         user name: ping   host name: 640g-laptop
        process ID: 9142
8.    .muttrc-gmail.swo
          owned by: ping   dated: Tue Jan 10 19:01:20 2012
         file name: ~ping/.muttrc-gmail
          modified: no
         user name: ping   host name: 640g-laptop
        process ID: 9142
9.    .muttrc-jnpr.ori.swp
          owned by: ping   dated: Tue Feb 19 11:31:19 2013
         file name: ~ping/.muttrc-jnpr.ori
          modified: no
         user name: ping   host name: 640g-laptop
        process ID: 20434
......








--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to