Sholto Douglas wrote: > I have used VIM for many years and am an aficionado. > However I find it has a VERY annoying habit of occasionally truncating the > start of a file when I save it. Usually I can get back the missing bits by > going to the backup file e.g. file.cpp~ > But today I find that even the backup file has been trashed. I have lost a > heap of work, which will set me back hours on a tight timetable. > Here is the start of the trashed file: > > g`"& kDisableSkipFolders) == kDisableSkipFolders); > > CloseCurrentKey(); > return m_vecPath.size() > 0; > } > > As you can see, it doesn't look like the start of a C++ source file. > Has anyone else had this? google didn't return any references to it, but I > can't imagine I am the only one to suffer this given it has happened many > times over the years. > Is there a fix for this blight on an otherwise excellent tool?
This almost certainly not caused by Vim itself. It could be a plugin that misbehaves, but it could also be a problem on your system, e.g. a virus scanner intercepting the write call. Or a hardware problem. You should try to find a pattern in when this happens. -- A computer without Windows is like a fish without a bicycle. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
