On Sat, Aug 25, 2012 at 04:03:54PM +0400, Dmitry Frank wrote: > *) Make sure you have set up persistent undo in Vim. > *) Open any file in vim, made some changes, save the file. (changes needed > to add changesets to the undo history) > *) Open the same file in any different app, change it a bit and save. > *) Switch back to Vim, it will ask you, do you want to reload changes. > Reload changes, and quit Vim. > *) Start Vim again and open the same file. Check undotree: you will see > that all the tree is lost.
This is expected behavior and documented under ":help persistent-undo": Vim will detect if an undo file is no longer synchronized with the file it was written for (with a hash of the file contents) and ignore it when the file was changed after the undo file was written, to prevent corruption. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]> -- 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
