chrisbra / Recover.vim

A Plugin to show a diff, whenever recovering a buffer
http://www.vim.org/scripts/script.php?script_id=3068
248 stars 25 forks source link

No diff == Default to delete #15

Closed rking closed 12 years ago

rking commented 12 years ago

If there is no diff from the swpfile, it's basically a useless file, is it not?

So it would make sense if you could just hit <enter> and get the [Y]es to delete.

chrisbra commented 12 years ago

On Mon, October 22, 2012 14:12, ☈king wrote:

If there is no diff from the swpfile, it's basically a useless file, is it not?

So it would make sense if you could just hit <enter> and get the [Y]es to delete.

It is a good idea.

I have not yet found out, why it sometimes does not provide a Delete option, although the diff seems to indicate that both files are equal. I'll try to fix that as well.

regards, Christian

chrisbra commented 12 years ago

Fixed with commit 5f7e4cd

rking commented 12 years ago

I like it!

One oddity, though:

I did like:

vim foo.txt

Then in another shell:

vim foo.txt

And it gave me the option to "delete" as default, so I said "Sure why not". Then the builtin swpfile dialog appeared and I hit 'e', but then the builting dialog appeared again.

I'm reproducing it without problem.

chrisbra commented 12 years ago

should work now with commit a065f94