So I downloaded the fugitive plugin for Vim and try to get it running on my Windows 7 machine.
I don't have the path to git.exe
in my %PATH%
and I don't want to add it since issues could arise doing such.
My Git is installed at C:\Program Files (x86)\Git\
. There's a config option for fugitive where I could tell my path to git.exe
(g:fugitive_git_executable
).
I've tried several flavours:
'C:/Program Files (x86)/Git/cmd/git.exe'
'C:\Program Files (x86)\Git\cmd\git.exe'
"C:\Program Files (x86)\Git\cmd\git.exe"
"C:\\Program Files (x86)\\Git\\cmd\\git.exe"
But none is working. Seems like in 1, 2, 4, there's a problem with the brackets in the path. The resulting call of :Git status
is
C:\WINDOWS\system32\cmd.exe /c (C:\Program Files ^(x86^)\Git\cmd\git.exe status)
and the cmd window complains that "\Git\cmd\git.exe" could not be processed
(translated from German).
How do I specify the path to git.exe
so that I don't have to expand my $PATH
variable?
Or more general: when using the system
command in Vim, how do I call programs that are located under 'C:\Program Files (x86)\
?