-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't exit vim editing file with no write access for user #260
Comments
so this happens also with |
Hm, if I try this here, I get:
if I then try using
But I never get that prompt. Hm, perhaps the 'backupcopy' could make difference? Are those file permissions for that file special? Note: already when opening, I see an indicator |
There are NTFS permissions set on the folder, which the files in it inherit. This is different from setting the read-only attribute on the file. The administrator has "full control" NTFS permission and UserA has "read-only" NTFS permission. To set the NTFS permission, I right-click folder in File Explorer > Properties > Security tab > set permissions. The read-only attribute has not been set. I do have the backup files option enabled in vim. I'll try in gvim clean mode tomorrow when I'm by PC. |
I ran Then I tried For backup, swap and undo directories, I set I will investigate further and see if I can narrow down the issue. |
I've narrowed it down to the following minimalist
The culprit seems to be Steps to reproduce:
The attempt to save In the above example, I'm using the read-only attribute but the same happens with NTFS permissions. Obviously this is not a big issue since I can comment out the Edit: my guess is that the appearance of a Windows dialog box, even if it's created by vim causes a |
I'm not sure whether to log this with Vim or here.
I am logged in as UserA and have read-only access to a folder that is owned by Administrator. If I open a file in gvim, I can edit it. However, when I try to save it, the following message appears:
The options are
Yes
orNo
. Whichever I choose, I get asked again. The only way to exit this infinite loop is to kill thegvim
process from Task Manager or equivalent.The text was updated successfully, but these errors were encountered: