I think the title is pretty clear about my problem. Summarized this is what happens: The symlink works fine for saving one time. The original file gets a read-only flag after that. Next time I try to save Vim reports read-only status and suggests using
:w!. If applied, the symlink gets replaced by a file named after the symlink with the contents of the file which I was editing and the changes made.
I hosted my _vimrc on github, in case there might be any settings which I don't know about that interfere with the correct behavior.
Small summary of what I tried to fix the "problem" or what solution don't seem applicable (Largely what the other two posts sugeested):
- Turn on
I don't want to:
- Source the .vimrc file
- Make a directory junction
I'm sorry for digging up this old topic but nowhere this is addressed properly and I believe there should be a acceptable solution. Maybe I'm just not able to combine the commands properly.
Btw: Vim is always started with administrator privileges (via its shortcut) if that matters.