>> set undodir=~/.vim/undofiles >> set undofile >> >> # ls -la /var/www/htdocs/robots.txt ~/.vim/undofile >> /%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. Bram, thanks for the quick response. The question is not why vim does not open undo files, but that is why owners of these files are different? For example, if I edit the file list.txt as root, and it belongs to the www-data:www-data, undo file will be saved in /root/.vim/undofiles/, but use it when I reopen list.txt I can't, because undo file will belong to root:www-data, but not to www-data:www-data -- -- 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.
