I just installed Cygwin on my work machine and would like to use the .vimrc file I use on my Linux box at home.
- Is that possible, or does it need to have Cygwin-specific settings?
- Where would I put the .vimrc file?
I'm a little unsure of what directory I'm being dropped into at the bash prompt under Cygwin, but I think I'd create a subdirectory called .vim there, right?
Best Answer
I launched vi as
vi -V
and got this:Realizing vi was looking for
.virc
and not.vimrc
like all the other *nix systems I've ever used, I just ran this to fix the problem:... or if if you've configured symlinks:
I'm pretty sure this was a problem, because Cygwin installs vi, and not vi improved; however, the loading screen if you launch vi with no parameters still says vi improved. Regardless, I installed
vim
viasetup.exe
and runningvim
(notvi
) does indeed try to load~/.vimrc
as expected. You can simply add analias vi=vim
to your ~/.profile to use the improved version by default.