I am not able to get persistent undo working.
In my .vimrc I have this:
[...]
"persistent undo:
set undofile
"in the right directory
set undodir="~/.vim/undo"
[...]
(the directory ~/.vim/undo exists and is readable and writable).
I also use the Gundo plugin
(http://www.vim.org/scripts/script.php?script_id=3304) and pathogen.
I would expect, when closing and reopening a file, to be able to see
the undo tree of all sessions on the same file inside gundo's window,
but I can't.
I am probably missing something or doing something wrong, can someone help?
Thank you,
marco
Actually persistent undo should just work. What happens, if you enter:
:exe "verbose :rundo" undofile(@%)
regards,
Christian
The double quotes should not be there (they start a comment)
:set undodir=~/.vim/undo
--
Andy
Also, make sure that the directory exists.
--
Ivan Sichmann Freitas
GNU/Linux user #509059
Hi,
thank you all.
This appeared to solve the problem and, as someone said, just works. :)
Thanks,
marco