Hi

I'm having problems getting gvim to be launched properly. The only
thing I've modified from 
http://msysgit.googlecode.com/files/Git-1.5.5-preview20080413.exe
is to change the exit to exit /b in git.cmd.

I tried setting editor in [core] of gitconfig to:
   gvim
   gvim.exe
   C:/Program Files (x86)/vim/vim71/gvim.exe
   C:\Program Files (x86)\vim\vim71\gvim.exe
   C:/Program\\ Files\\ \\(x86\\)/vim/vim71/gvim.exe

Anything with unescaped (, ), or \ results in the not-too-helpful:

fatal: bad config file line 4 in C:/Program Files (x86)/Git/bin/../etc/
gitconfig

and the others result in

fatal: There was a problem with the editor gvim.exe

(or whatever command line was specified)

The best option I found was:
        editor = C:/Program\\ Files\\ \\(x86\\)/vim/vim71/gvim.exe

but then Vim starts up with a filename of $@, and an empty file
(rather than the placeholder commit message), and on exit claims:

fatal: no commit message?  aborting commit.

presumably because it's looking in a temp file, not $@ which Vim wrote
to.

I also tried setting VISUAL and EDITOR but didn't have much more luck.

Any suggestions?

thanks, scott

Reply via email to