On 1/31/06, <b class="gmail_sendername">Peter Jay Salzman</b> <<a href="mailto:p@dirac.org">p@dirac.org</a>> 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 "vi /etc/profile" and have gvim come up, editing<br>/etc/profile without necessarily running X. 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> /cygdrive/c/Program\ Files/Vim/vim64/gvim.exe /etc/profile<br><br>gvim comes up with:<br><br> "Cannot open swap file for \etc\profile", recovery impossible
<br><br>and I find myself editing an empty file. Eventually, I'd like to make<br>"/usr/bin/vi" an alias for "/cygdrive/c/Program Fiels/Vim/vim64/gvim.exe".<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. It's an option when installing gvim. 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, & it works.<br><br>Foo<br> </div><br></div>