7
3
It seems that when working with a file in VIM it primarily uses a backup version of the file then overwrites the original on save. This is a problem when using symbolic links under Windows (e.g. mklink link_path target_path
) as it destroys the symbolic link.
Does anyone know a way around this? I've already seen this in the FAQ which talks specifically to this issue but the recommended workaround doesn't work. Maybe it did at some point but not for Vim 7.3 (under Windows 7 x64).
What happens when you use a hard link instead? – paradroid – 2011-03-10T16:30:13.727
Works with hardlinks AND backup. I just had to remove the readonly flag. – M'vy – 2011-03-10T16:33:31.943
1Doesn't seem to work on my machine: Windows 7 x64. When I save the file I always lose the symlink. In my vimrc I have:
set nobackup
andset nowritebackup
. – Thiru – 2011-03-12T00:54:39.393I've just tested on a windows 7 x32. It works even better since I can do it with symlinks AND backup (and of course hardlinks). Vim version is 7.3.46. – M'vy – 2011-03-12T01:03:22.163