When I give a
gvim command in Cygwin, I want it to invoke the gvim I've installed in my Windows.
I tried writing a function in my .bashrc called
gvim that invokes the gvim.exe in my Program Files folder, using
cygpath and all that, but the problem is, that apparently invokes the gvim with Cygwin's environment;
:echo $HOME prints C:\cygwin\home\Sundar instead of C:\Users\Sundar, and
:diffsplit reports failures in creating temporary files which I assume are related to the same. So, how can I invoke gvim from Cygwin but make it as if it was invoked through, say, the Start menu?
I tried changing the command to pass the gvim path to
cmd.exe /c, but that too somehow sets up the same environment. What do I need to do to make this work?