Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi =myscript_somewhere can I specify which editor used?
- X-seq: zsh-users 8081
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: vi =myscript_somewhere can I specify which editor used?
- Date: Tue, 19 Oct 2004 17:39:02 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <3l3an0hmt9jvsk5l4gmqc2s8iuc9q65k5u@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <afn9n051bfdtmvtpogqrur9fhn381ouhdl@xxxxxxx> <20041019114239.GA24763@xxxxxxxxxxxxxxxxx> <3l3an0hmt9jvsk5l4gmqc2s8iuc9q65k5u@xxxxxxx>
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