Interested in my services?

Contact me at remy@remygiard.com

Cygwin sharing Vim configuration with Windows

If you are stuck on a Windows machine and miss the Unix style, you probably have cygwin installed already. In my case, I also had Vim installed on Windows plus some configurations and plugins.  Well, if you want to use the text editor inside cygwin, you won’t have the configuration you made under Windows.

In fact, Windows is not using the default vim file names.  More, they are not located in your home folder.  Simple trick, under cygwin, you can create links to vimrc and vim folder.

Under cygwin, link to _vimrc and vimfiles folder:
cd ~
ln -s “d:/program files/vim/_vimrc” .vimrc
ln -s “d:/program files/vim/vimfiles” .vim
dos2unix .vimrc

replace “d:/program files/vim” with your Vim installation folder

Finally, start vim under cygwin and enjoy !

Post a Comment

Your email is never shared. Required fields are marked *

*
*