On Wednesday, May 3, 2017 at 8:41:01 AM UTC-5, Niels Kobschätzki wrote: > I found today the following on a Debian 8.7 (vim 7.4.576) and FreeBSD 11 > (8.0.579): I am in my home-dir "user" and there I create a file with the > following permissions: root:user 640 > > When I open the file as "user", vim tells me that the file is read-only. > I edit it, and close it with :x! > vim writes the file and sets the permissions to: > user:user 640 > > I didn't use sudo or anything. When I tried to do a chown or chmod on > this file to set the permissions to user:user from root:user it failed > because "user" didn't have the permissions. > > What is happening here? > > Niels
I expect Vim is renaming the old file and writing a new one. See :help 'backupcopy' and 'writebackup'. -- -- You received this message from the "vim_use" 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_use" 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/d/optout.
