FG

gVim as git editor under cygwin

Fresh3 days ago
Mar 15, 20263424 views
Confidence Score0%
0%

Problem

I use msysgit and I'd like to have gvim as my git editor. I use cygwin bash instead of git bash. Running starts gvim. But if I set this as git editor: and run commit I get: I then add escaped backslashes where needed: This still gives me: The thing is, I can copy the string from after "cannot run" …

Error Output

$ /cygdrive/c/Program\ Files\ \(x86\)/Vim/vim73/gvim.exe

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: gVim as git editor under cygwin

Low Risk

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 sta…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment