I removed read only permission from
C:\Windows\System32\drivers\etc\hosts file and file is not hidden. I belong to Administrator group at Windows 7 system.
- When I open file in gvim without admnistrative permissions by command
:e C:\Windows\System32\drivers\etc\hostsand then I try to make changes messeges appear:
W10: Warning: Changes at read only file
E303: Cannot open swap file for C:\Windows\System32\drivers\etc\hosts
:w! command message appear:
E212 Cannot open file for write
- When I open file in gvim WITH admnistrative permissions and than open file by command
e: C:\Windows\System32\drivers\etc\hostsfile saves correctly by
What should I do to save changes using Gvim while opening Gvim without administrative permissions?