gVim as git editor under cygwin

Solution 1:

git config seems to remove one level of quotes, so add another. This works for me (with another editor):

git config core.editor "\"c:/Program Files (x86)/Vim/vim73/gvim.exe\""

(Note the escaped quotes surrounding the path, this causes the editor started whenever you do e.g. git commit to be "c:/Program Files (x86)/Vim/vim73/gvim.exe", so with quotes that tell the bash shell to not try to interpret the () as whatever it thinks this means.)