Friday, May 28, 2010

Re: How to recover files after vim crash?

Hi Tony!

On Fr, 28 Mai 2010, Tony Mechelynck wrote:

> - If Vim says "modified: YES" but not "NEWER than swap file", answer
> (r)ecover; then before you save the changes, use the :DiffOrig command
> (which is described under :help :DiffOrig and is defined by the
> vimrc_example.vim) to compare the file before and after recovery. If the
> changes are what you expect, you can save the new version, and then
> immediately reload it to (d)elete the now obsolete swap file.

Forgive me for shamelessly mentioning my recover.vim Plugin
http://www.vim.org/scripts/script.php?script_id=3068
It will open automatically a diff window whenever it detects, that for a
file already exists a swap file.

regards,
Christian

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

Post a Comment