Using Windows Vim from Cygwin
It's nice to use the Windows gvim from Cygwin, because you don't need to have X windows running. It turns out to be fairly easy.
Here's a script called gvim.sh:
#!/bin/ksh
if [[ $1 == "-" ]]
then
# note that this can't go into the background because stdin gets lost
/c/Program\ Files/vim/vim64/gvim.exe -
else
/c/Program\ Files/vim/vim64/gvim.exe $(cygpath -w $*) &
fiThe cygpath utility converts the Cygwin paths to Windows paths that make sense to the Windows version of Vim.