When I type :w! this message appears:
"_vimrc" E212: Can't open file for writing
So I tried :w!!, but that didn't work either.
I am logged in as Administrator. The _vimrc file Properties, Security
tab, says
Permissions for Administrators, Allow Write
The Read-only attribute is not checked.
How to edit vimrc file on Windows 7?
I believe this is the user account control or whatever UAC stands for.
In order to gain admin access, you actually need to TELL Windows,
"even though I'm admin, yes, I actually want to be admin for this
action" when you launch Vim.
Or, even better, don't edit the _vimrc in the Program Files directory.
Instead, edit it in your user-specific directory, which you can find
from within Vim by typing:
:echo $HOME
and pressing enter.