From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15051 invoked from network); 6 Jul 2005 11:32:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Jul 2005 11:32:16 -0000 Received: (qmail 69176 invoked from network); 6 Jul 2005 11:32:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jul 2005 11:32:09 -0000 Received: (qmail 5113 invoked by alias); 6 Jul 2005 11:32:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9041 Received: (qmail 5101 invoked from network); 6 Jul 2005 11:32:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jul 2005 11:32:01 -0000 Received: (qmail 68014 invoked from network); 6 Jul 2005 11:32:01 -0000 Received: from mxfep02.bredband.com (195.54.107.73) by a.mx.sunsite.dk with SMTP; 6 Jul 2005 11:31:55 -0000 Received: from puritan.pnetwork ([213.112.43.228] [213.112.43.228]) by mxfep02.bredband.com with ESMTP id <20050706113155.IHDT21194.mxfep02.bredband.com@puritan.pnetwork> for ; Wed, 6 Jul 2005 13:31:55 +0200 Received: by puritan.pnetwork (Postfix, from userid 1000) id C02CEADFEA; Wed, 6 Jul 2005 13:31:54 +0200 (CEST) Date: Wed, 6 Jul 2005 13:31:54 +0200 From: Nikolai Weibull To: zsh-users@sunsite.dk Subject: Re: Adding a prefix to certain filename completions Message-ID: <20050706113154.GA5313@puritan.pnetwork> Mail-Followup-To: zsh-users@sunsite.dk References: <20050705172846.GB5362@puritan.pnetwork> <20050704193711.GF6330@puritan.pnetwork> <20050705042324.GA21301@picard.franken.de> <20050705080946.GC5333@puritan.pnetwork> <20050705172846.GB5362@puritan.pnetwork> <1050706050022.ZM13972@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1050706050022.ZM13972@candle.brasslantern.com> User-Agent: Mutt/1.5.8i 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=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Bart Schaefer wrote: > I had assumed there was already an _vim completion, but there's not. > So just write one. > > _vim() { > [[ $PREFIX = +* ]] && _files -P './' || _files > } > compdef _vim vim Ah, that’s great! I’ll try to find some time today to actually write a complete _vim completion. Thanks!, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}