Closed GoogleCodeExporter closed 8 years ago
Sorry, I forgot to mention that the usual cmd.exe environment of msysgit works
flawlessly.
Original comment by koraktor
on 27 Oct 2010 at 6:26
The vim in msysgit is a native Windows program rather than an MSYS one, which
means it expects to talk to a console rather than to an MSYS/Cygwin pseudo
terminal device, which is what mintty is based on.
Same thing happens with MSYS rxvt dropped into msysgit (and also when using
Windows vim from vim.org in any of the non-console terminals in Cygwin). The
MSYS version of vim of course works fine in either mintty or rxvt.
So I'm afraid this is a particularly unfortunate example of issue 56.
Original comment by andy.koppe
on 27 Oct 2010 at 12:19
[deleted comment]
Here's my vi/vim file, replacing the one from git at
C:\Program Files (x86)\Git\bin\vim
#!/bin/sh
# git vim hangs when running under cygwin, so use cygwin vi in that case,
instead
# git bash does not support regex =~, so use grep
# Mingw32 git saves PATH in ORIGINAL_PATH, & uses /c/ instead of /cygdrive/c/
if echo $PATH $ORIGINAL_PATH | grep -q cygdrive ; then
"c:/cygwin64/bin/vi.exe" "$@"
elif echo $PATH | grep -q mingw; then
# we're not running under cygwin, I hope!
exec /share/vim/vim74/vim "$@"
else
echo "Couldn't find cygdrive or mingw in path; running wscite\SciTE"
"C:\Program Files (x86)\wscite\SciTE.exe" "$@"
fi
Original comment by tallp...@gmail.com
on 18 Oct 2014 at 10:46
Original issue reported on code.google.com by
koraktor
on 27 Oct 2010 at 6:25