Thursday, May 6, 2010

Re: Recover a deleted file from its swap file

Nazri Ramliy <ayiehere@gmail.com> [10-05-07 05:32]:
> I have a vim swap file for a file that I have just deleted.
>
> It is possible to get vim to (sort of) recover the content of the file
> referred to by the swap file?
>
> Thanks in advance for any help.
>
> nazri.
>
> --
> 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
>

I would guess: Yes.

First backup the swp-file (just to have more than one try)
then create with another editor an empty file with the name
of the deleted one.
Then start vim with that file and choose "recover".

HTH - Good luck!
best regards
mcc

--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.

--
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

No comments: