On 1/31/06, <b class="gmail_sendername">Peter Jay Salzman</b> &lt;<a href="mailto:p@dirac.org">p@dirac.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In cygwin, I'd like to type &quot;vi /etc/profile&quot; and have gvim come up, editing<br>/etc/profile without necessarily running X.&nbsp;&nbsp;That means I need to rely on a<br>win32 installation of gvim, rather than the gvim that comes with cygwin.
<br><br>I've installed win32 gvim in C:\Program Files\vim, but when I do:<br><br>&nbsp;&nbsp; /cygdrive/c/Program\ Files/Vim/vim64/gvim.exe /etc/profile<br><br>gvim comes up with:<br><br>&nbsp;&nbsp; &quot;Cannot open swap file for \etc\profile&quot;, recovery impossible
<br><br>and I find myself editing an empty file.&nbsp;&nbsp;Eventually, I'd like to make<br>&quot;/usr/bin/vi&quot; an alias for &quot;/cygdrive/c/Program Fiels/Vim/vim64/gvim.exe&quot;.<br><br>Is there a way to use win32 gvim from within cygwin and have the pathnames
<br>work out?</blockquote><div><br>Hi Pete,<br><br>When I installed gvim, I also installed the bat files for running from the command line.&nbsp; It's an option when installing gvim.&nbsp; It puts batch files in the Windows directory, so you can merely run:
<br><br>gvim.bat file<br><br>I have successfully aliased vi to /cygdrive/c/WINDOWS/gvim.bat, &amp; it works.<br><br>Foo<br>&nbsp;</div><br></div>