I have Git working with Vim in a Powershell environment on my work laptop (Windows 7). It pops up Vim when I commit or use my
git vimdiff alias.
I have attempted the same setup under Cygwin (being a Unix guy at heart) but when I type
git commit or
git vimdiff, Vim does not pop up; seemingly, though, Git is waiting on Vim because the action never completes until I Ctrl–C (after which it takes a minute or so to recover). I can commit with inline commit messages (
git commit -m "I would rather type this in Vim") and I can launch Vim/Vimdiff from the terminal with
vimdiff. I have my editor set to Vim in multiple places:
$ echo $EDITOR vim $ git config --get core.editor vim
(Initially, I had not explicitly set it in Git, but only in the environment variable, and still had the same problem.)
It appears that I am running Windows Git in Cygwin. Being new to Cygwin, I did not realize this when I first asked the question. I could see how that might cause problems, but after playing around I have not yet been able to fix it.
Has anyone seen this problem before? Any idea how to fix it?