cac2s wrote: > Can anyone tell my is t bug or a normal behavior? > > Debian Wheezy > vim 7.3 > > undo settings from .vimrc: > > set history=1000 > set undodir=~/.vim/undofiles > set undofile > > > edited file — /var/www/htdocs/robots.txt > undo files stored in ~/.vim/undofiles/ > > # ls -la /var/www/htdocs/robots.txt > ~/.vim/undofiles/%var%www%htdocs%robots.txt > -rw-r----- 1 root www-data 519 Sep 5 20:34 > /root/.vim/undofiles/%var%www%htdocs%robots.txt > -rw-r----- 1 www-data www-data 1562 Sep 5 20:34 /var/www/htdocs/robots.txt > > > As you can see from the output, the edited file owner is different > from the his undo file, in consequence of which there is an error "Not > reading undo file, owner differs" while opening file (with 'set > verbose=1' in ~/.vimrc)
Vim verifies that the edited file and the undo file belong together. If the owner differs this is considered suspicious and Vim won't use the undo file. -- If Microsoft would build a car... ... You'd have to press the "Start" button to turn the engine off. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
