Hi Dmitry!

On Sa, 25 Aug 2012, Dmitry Frank wrote:

> Of course, if you close Vim, then change file by another app, then open
> this file in Vim again, then, expectedly, undo history should be lost.
> But in my example, Vim reloads the changes after file is changed. And, at
> this moment, changes aren't lost: *Vim wrote reloaded changes as just a
> single change in undohistory*. This is really good, check this.
> 

Yes, this is expected, because when reloading, Vim saves the complete 
buffer in the undotree and therefore can keep the undo history. See :h 
'undoreload'

> But if user close Vim now, then these changes is lost.

Hm, I guess, you need to save the file first, before quitting. That is 
indeed a little bit strange.

Mit freundlichen Grüßen
Christian

-- 
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

Raspunde prin e-mail lui