13
6
I have downloaded and installed git for windows (msysgit) and frequently used the included git bash. Whenever I run vim from git bash my _vimrc file is not loaded because there is syntax highlighting or anything. When I run the same command to start vim form with in windows command line (cmd) instead of git bash it works as described in my _vimrc file. The only customization I have done to git bash is to add the following bash_profile to C:\Program Files (x86)\Git\etc
alias up='cd ..'
alias ls='ls --color'
alias la='ls -a'
alias vimconfig='vim /c/Program\ Files/Vim/_vimrc'
alias gvimconfig='vim /c/Program\ Files/Vim/_gvimrc'
alias bashconfig='vim /c/Program\ Files/Git/etc/bash_profile'
LS_COLORS='di=36:fi=37:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
export LS_COLORS
Does anyone know why it loads my _vimrc file correctly when vim is launched from cmd and incorrectly when launched from git bash?
Thanks, it works perfectly. I followed the last command in windows 8.1 – Ibn Saeed – 2015-03-23T09:29:22.550
Did you mean "msysgit comes with its own version of vim."? – Heptite – 2011-05-07T17:39:07.467
2Note that you might have to run git bash as Administrator to do that last line. – Kristo – 2012-06-11T02:58:03.173