Getting Win32 Vim Running with symbolic links for .vimrc and .vim/


Blog categories: 

While my dotfile repository nesono-bin has been changed to run fine on Cygwin recently, I suddenly had severe problems using Win32 gvim. Looking at the symptoms it became soon obvious that they were caused by the Cygwin-style symbolic link that was created by the nesono-bin installer script under Cygwin.

The sad truth is that symbolic links from Cygwin are by no means file system level symbolic links but need to be expanded by the Cygwin shell to handle them correctly. The only solution I have found is to install the LinkShellExtension (LSE), manually remove the Cygwin symbolic links (i. e., ~/.vimrc and ~/.vim/), and manually create the links pointing from %HOME%\.vimrc to %HOME%\nesono-bin\vimrc as well as from %HOME%\.vim to %HOME%\nesono-bin\vim. Apart from that, I also had to do some additional checks in .vimrc, but then: No more errors at startup like unreadable settings files - what a relieve!

LSE seems to support some more fancy stuff like Junctions, etc. so it’s definitely worth a look. So much for today,