I am attempting to set up Vim on Windows, using Git bash (Cygwin) as the shell environment. I'm getting an error about temporary files which I'm 99% sure is related to the fact that the shell can't be loaded (i.e. the "!" commands don't work).
In my _vimrc file I've tried setting the shell option to be various things, none of which work. My cygwin/git bash command path is C:\Program Files\Git\bin\sh.exe, and the space seems to be causing problems. I've tried the following, without success:
:set shell=C:\Program Files\Git\bin\sh.exe " Error = Unknown options: Files/Git/bin/sh.exe :set shell=C:/Program Files/Git/bin/sh.exe " Error = Unknown options: Files/Git/bin/sh.exe :set shell="C:/Program Files/Git/bin/sh.exe" " Error when running a command: shell option is empty :set shell=C:/Program\ Files/Git/bin/sh.exe " Error when running a command: 'C:/Program' is not recognized as an internal or external command... Does anyone know how I can set a shell path that contains a space?