On 4/27/07, Gordon Bazeley <[EMAIL PROTECTED]> wrote:
Hi guys,
A bit of a cry for help I'm afraid. I've been using Vim to keep a
diary for the last few years and somehow the file I use for this
purpose has become corrupted through a system crash. I have a rather
old backup but don't really want to go that route unless I need to.
The file in question was encyrpted with VimCrypt and the file now
looks a bit strange to say the least. There is a section of readable
text at the top of the document (although notably NOT the text that
was actually at the top of the doc when I last used it) and after
about thirty lines or so the text becomes garbled for another 1600
lines or so.
I've tried copying the garbled text into a new file and prepending it
with "VimCrypt~" but Vim is not recognising it as a crypted file (I'm
not sure if this portion of the file is savevers plugni
actually crypted or just
garbled).
A section of the garbled text is given below:
Ùaª÷Fhl¸‰VÆw[SZÿoz)M82¦û>ô‹ù‰,
mäÐöþ-[†ýÿc¼ä
Does recovering with -r helps ?
Did you not use the backupex (~), those file~ older files ?
It is good idea to use them anyway.
Even better idea is to use
savevers plugin (http://www.vim.org/scripts/script.php?script_id=89).
Another excellent idea is to checkin your personal files
into some cvs, svn or git server, or just ftp it to remote server after edits.
I use svn/git for personal files, I checkin after almost every edit.
it works very well.
You do not describe details of your system crash, but if fsck rearranged
blocks of the file (or truncated the file), then you need to look for
earlier version of the file of disk or on backup. This is what
backupext-files (~ files)
are for, and things like savevers.vim and svn/csv.
Yakov