Monday, September 18, 2017

Re: Vim under Windows 10 reports files as "read-only"

On Mon, Sep 18, 2017 at 10:08 PM, Ben Fritz <fritzophrenic@gmail.com> wrote:
> On Monday, September 18, 2017 at 7:51:44 AM UTC-5, Karthick wrote:
>> Hello folks,
>>
>> I have Gvim 8.0 installed on a Windows 10 machine. Sometime in the
>> last few days, looks like there was an OS update that changed how
>> files in the 'Documents' folder are handled.
>>
>> This is what I see now:
>> a. Editing files in, say C:\Windows\Temp\temp.txt works fine.
>> Similarly many other folders in C:\ work perfectly fine as well.
>> b. However, as far as I can see, ALL files in my 'Documents' are not
>> editable by gvim. The files open in readonly mode and trying to :w!
>> reports E212: Can't open file for writing.
>
> Perhaps it's because of the new-ish Windows 10 feature called "Controlled Folders", which prevents apps not on a whitelist from accessing your documents folder. This is intended as a ransomware protection feature. There's supposed to be a way to add apps to the whitelist, but Microsoft apps (and probably a few other common apps) are included by default.

Thanks - that was the google keyword that I needed! In my case, it was
the antivirus Bitdefender that was blocking access to the files. Once
I add gvim to the white-list, the original issue gets resolved.

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: