Tuesday, May 31, 2011

Re: Restore file from undo

Hello,

Christian, thanks for your answer.
Yes, all the files I've lost were created from scratch, so I suppose,
that undofile contains all the file history (undolevels=1000 should be
sufficient for every file).

----
Best wishes and have a nice day,
Vsevolod Velichko

2011/5/31 Christian Brabandt <cblists@256bit.org>:
> That would only work, if you had previously reloaded your whole buffer
> using :e! and 'undoreload' was set to a negative number (or you file
> contained less than that number of lines). If you know, the whole
> file content was previously saved in your undofile and you'd like to
> try out reloading your changes, let me know. I made a patch, that
> enables you to force reloading the undo history, which you could try out
> if you want. But that is not very useful by itself.
>
> regards,
> Christian

--
You received this message from the "vim_use" 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

No comments: