Saturday, February 20, 2010

Re: :wa don't save recovered files

On Feb 19, 4:15 am, smith <dmitriy.kuznet...@gmail.com> wrote:
> Windows Vista, GVIM 7.2 (Big version with GUI)
> I was opened file in GVIM after system crash. GVIM offers to recover
> file as it was not saved. I  agree and try to save recovered file
> using command ':wa', but GVIM to do nothing (may be it thinks that
> there are no modified buffers?) I quit GVIM, remove .swp files and...
> lost my work. The command ':w' work nice at recovered files and saves
> it.  Is it a bug ? Must ':wa' save recovered files ?

This does not make sense. :wa saves all modified files. If you
actually recovered unsaved changes, your buffer will be modified, and
therefore will be saved with :wa.

I'm guessing either you did not really do a recovery (the "a" choice
in the recovery prompt is "abort", not "agree"), or there were no
unsaved changes in the swap files, so your buffers remained unmodified.

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

No comments: