Re: vim can't write /etc/hosts

2014-09-08 Thread Frank Fesevur
2014-09-07 17:00 GMT+02:00 Andrey Repin: Adding to what other people said, most self-respecting antivirus applications explicitly block access to system hosts file. For obvious reasons. If you absolutely NEED to modify it, and can't resolve your issues in any other way, disable hosts file

Re: vim can't write /etc/hosts

2014-09-07 Thread Andrey Repin
Greetings, Frank Fesevur! On my Win81 machine I tried to edit /etc/hosts with vim. When I try to write the file I get this error: /etc/hosts E166: Can't open linked file for writing Since /etc/hosts is a symlink to /cygdrive/c/windows/System32/drivers/etc/hosts so I tried to edit the file

Re: vim can't write /etc/hosts

2014-09-05 Thread Frank Fesevur
2014-09-05 4:33 GMT+02:00 Darik Horn: On Thu, Sep 4, 2014 at 4:33 PM, Frank Fesevur wrote: Why can't vim write the file, or even better the symlinked file? I'm quite sure editing the symlink works in Win7, but can try tomorrow. Starting C:\Cygwin\bin\mintty.exe through a Run As Administrator

vim can't write /etc/hosts

2014-09-04 Thread Frank Fesevur
Hi, On my Win81 machine I tried to edit /etc/hosts with vim. When I try to write the file I get this error: /etc/hosts E166: Can't open linked file for writing Since /etc/hosts is a symlink to /cygdrive/c/windows/System32/drivers/etc/hosts so I tried to edit the file with the full path but that

Re: vim can't write /etc/hosts

2014-09-04 Thread Darik Horn
On Thu, Sep 4, 2014 at 4:33 PM, Frank Fesevur f...@users.sourceforge.net wrote: Why can't vim write the file, or even better the symlinked file? I'm quite sure editing the symlink works in Win7, but can try tomorrow. Starting C:\Cygwin\bin\mintty.exe through a Run As Administrator context