From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21823 invoked from network); 5 Jul 2005 08:10:10 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Jul 2005 08:10:10 -0000 Received: (qmail 31734 invoked from network); 5 Jul 2005 08:10:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jul 2005 08:10:00 -0000 Received: (qmail 15294 invoked by alias); 5 Jul 2005 08:09:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9031 Received: (qmail 15285 invoked from network); 5 Jul 2005 08:09:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Jul 2005 08:09:52 -0000 Received: (qmail 30645 invoked from network); 5 Jul 2005 08:09:51 -0000 Received: from mxfep02.bredband.com (195.54.107.73) by a.mx.sunsite.dk with SMTP; 5 Jul 2005 08:09:46 -0000 Received: from puritan.pnetwork ([213.112.43.228] [213.112.43.228]) by mxfep02.bredband.com with ESMTP id <20050705080946.XRFT12835.mxfep02.bredband.com@puritan.pnetwork> for ; Tue, 5 Jul 2005 10:09:46 +0200 Received: by puritan.pnetwork (Postfix, from userid 1000) id 43DF1ADFEA; Tue, 5 Jul 2005 10:09:46 +0200 (CEST) Date: Tue, 5 Jul 2005 10:09:46 +0200 From: Nikolai Weibull To: zsh-users Subject: Re: Adding a prefix to certain filename completions Message-ID: <20050705080946.GC5333@puritan.pnetwork> Mail-Followup-To: zsh-users References: <20050704193711.GF6330@puritan.pnetwork> <20050705042324.GA21301@picard.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050705042324.GA21301@picard.franken.de> 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 Thomas Köhler wrote: > Nikolai Weibull wrote: > > Vim has issues with files that begin with a + (or two +s for that > > matter), so I'd like to add a ./ prefix to such files when > > completing. I thought I knew how to do this, but alas I do not. > > Anyone that does? > Not knowing the zsh answer, I would add a "--" once before the > "strange" file name: > vim -- +myfile Again, the ./ prefix also works. However, I would like for this to be handled automatically, kind of like spaces being escaped when completing a path containing them. Thanks for responding, 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);}