Sometimes, when vim or the host OS crashes with many open files, .swp
files are left scattered throughout the system. Currently, I locate
all the .swp files and manually open the corresponding original files
in vim so that I'm prompted with the option to recover what's in the
.swp. 90% of the time, the recovered file is identical to the
original, and 5% of the time, the recovered file is empty. In both
these cases, I simply discard the .swp.

Is there a way (or are there any tools) to automate this highly manual
recovery process? I.e., given a set of .swp files, for each one
compare the recovered file with the original and discard the swp if
it's useless (leaving in place the ones that could not be
automatically pruned out)?
-- 
Yang Zhang
http://www.mit.edu/~y_z/

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to