From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20894 invoked from network); 19 Oct 2004 22:41:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Oct 2004 22:41:28 -0000 Received: (qmail 80762 invoked from network); 19 Oct 2004 22:41:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Oct 2004 22:41:21 -0000 Received: (qmail 5912 invoked by alias); 19 Oct 2004 22:40:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8081 Received: (qmail 5869 invoked from network); 19 Oct 2004 22:40:06 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Oct 2004 22:40:06 -0000 Received: (qmail 78109 invoked from network); 19 Oct 2004 22:39:04 -0000 Received: from dan.emsphone.com (199.67.51.101) by a.mx.sunsite.dk with SMTP; 19 Oct 2004 22:39:03 -0000 Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i9JMd2NH009147; Tue, 19 Oct 2004 17:39:02 -0500 (CDT) (envelope-from dan) Date: Tue, 19 Oct 2004 17:39:02 -0500 From: Dan Nelson To: zzapper Cc: zsh-users@sunsite.dk Subject: Re: vi =myscript_somewhere can I specify which editor used? Message-ID: <20041019223902.GF83510@dan.emsphone.com> References: <20041019114239.GA24763@picard.franken.de> <3l3an0hmt9jvsk5l4gmqc2s8iuc9q65k5u@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3l3an0hmt9jvsk5l4gmqc2s8iuc9q65k5u@4ax.com> X-OS: FreeBSD 5.3-BETA7 X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 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@allantgroup.com