On Sat, Sep 07, 2013 at 03:42:55AM -0700, cac2s wrote: > The question is not why vim does not open undo files, but that is why > owners of these files are different?
In the common case (not editing as root), even if you can edit a file not owned by you, you can't create files that aren't owned by you. > 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 root-specific code could probably be added, but that doesn't solve the problem for a normal user that can edit due to group membership/ACLs. The undo file would still have a different user. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
signature.asc
Description: Digital signature
