From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26087 invoked from network); 7 Jul 2005 12:54:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Jul 2005 12:54:39 -0000 Received: (qmail 33752 invoked from network); 7 Jul 2005 12:54:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Jul 2005 12:54:32 -0000 Received: (qmail 16346 invoked by alias); 7 Jul 2005 12:54:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9049 Received: (qmail 16298 invoked from network); 7 Jul 2005 12:54:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Jul 2005 12:54:24 -0000 Received: (qmail 32584 invoked from network); 7 Jul 2005 12:54:24 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 7 Jul 2005 12:54:19 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 7 Jul 2005 13:52:19 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 7 Jul 2005 13:55:47 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j67CsHri024837 for ; Thu, 7 Jul 2005 13:54:18 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j67CsHJh024834 for ; Thu, 7 Jul 2005 13:54:17 +0100 Message-Id: <200507071254.j67CsHJh024834@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: Adding a prefix to certain filename completions In-reply-to: <20050707121138.GC5452@puritan.pnetwork> References: <20050704193711.GF6330@puritan.pnetwork> <20050705042324.GA21301@picard.franken.de> <20050705080946.GC5333@puritan.pnetwork> <1050706050022.ZM13972@candle.brasslantern.com> <20050706113154.GA5313@puritan.pnetwork> <20050707020210.GA5084@puritan.pnetwork> <1050707054007.ZM14965@candle.brasslantern.com> <20050707105817.GA5452@puritan.pnetwork> <5826.1120735089@csr.com> <20050707121138.GC5452@puritan.pnetwork> Date: Thu, 07 Jul 2005 13:54:16 +0100 From: Peter Stephenson X-OriginalArrivalTime: 07 Jul 2005 12:55:47.0313 (UTC) FILETIME=[31BE0E10:01C582F3] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Nikolai Weibull wrote: > Ah, of course. There are many commands that can use this actually. > :help ex gives the following list: > > ex exim view gvim gex gview rvim rview rgvim rgview evim eview vimdiff gvimdi > ff > > and, as you say, there's usually a vi link as well, This adds the vim-specific versions. ex and view also come with vi. I'll wait for someone to decide how to manage these three. Index: Completion/Unix/Command/_vim =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_vim,v retrieving revision 1.1 diff -u -r1.1 _vim --- Completion/Unix/Command/_vim 7 Jul 2005 11:16:11 -0000 1.1 +++ Completion/Unix/Command/_vim 7 Jul 2005 12:51:01 -0000 @@ -1,4 +1,4 @@ -#compdef vim +#compdef vim exim gvim gex gview rvim rview rgvim rgview evim eview vimdiff gvimdiff _vim_files () { if [[ $(echo $PREFIX*(N)) == '' ]]; then -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************