Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: vi =myscript_somewhere can I specify which editor used?



In the last episode (Oct 19), zzapper said:
> On Tue, 19 Oct 2004 13:42:40 +0200,  wrote:
> >   gvim =myscript_somewhere
> >Is that too easy or do I misunderstand your question?
> >
> >Ciao,
> >Thomas
>
> Blush, yes I remember now the real problem is that gvim being a win32
> program doesn't understand the Cygwin / root, thus I have to use
> Cygwin's non-gui vim

How about a shell script named gvim in your cygwin path:

 #! /bin/sh
 filename=$(cygpath -w -- "$1")
 gvim.exe "$filename"

Which will convert the filename to a windows-style path, then call the
real gvim.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author