chrisbra / Recover.vim

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

Make it easy please #31

Closed luxigo closed 9 years ago

luxigo commented 9 years ago

Nice plugin, so often we need to recover, save the recovered file, exit vim, check changes with diff, then replace the original file with the recovered one. :+1:

Most of the time after checking the diff, we obviously only want to replace the current file by the newest version from the swap file (or to discard it).

Could you please document how to do it in the first lines of :h RecoverPlugin ? or implement something like ":RecoveryRetain" and ":RecoveryDiscard" ?

Thanks in advance :-)

For my first try, after losing ten minutes in the documentation (being unaware that documentation for the "merge" commands mentionned could be displayed with :h merge) I messed up with merge commands I do not masterize yet and lost my small change after :RecoveryPluginFinish... :8ball:

chrisbra commented 9 years ago

Can you check, if the latest commit makes it more easy for you?