From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19939 invoked from network); 27 May 2004 22:05:19 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 27 May 2004 22:05:19 -0000 Received: (qmail 6490 invoked from network); 27 May 2004 22:04:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 May 2004 22:04:45 -0000 Received: (qmail 11535 invoked by alias); 27 May 2004 22:04:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7482 Received: (qmail 11474 invoked from network); 27 May 2004 22:04:31 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 27 May 2004 22:04:28 -0000 Received: (qmail 5132 invoked from network); 27 May 2004 22:04:14 -0000 Received: from 143.80-203-48.nextgentel.com (HELO s.hn.org) (80.203.48.143) by a.mx.sunsite.dk with SMTP; 27 May 2004 22:04:13 -0000 Received: (qmail 22033 invoked by uid 1000); 27 May 2004 22:03:46 -0000 Date: Fri, 28 May 2004 00:03:46 +0200 From: Haakon Riiser To: zsh-users@sunsite.dk Subject: Completion system (filename prefixes) Message-ID: <20040527220346.GA22004@s> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: isplay-message> Content-Disposition: inline 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=4.1 required=6.0 tests=BAYES_44,RCVD_IN_DYNABLOCK, RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 4.1 I have started writing a completion function for Vim, but there's one feature I'd like to add that I can't figure out how to do. In Vim, files starting with + needs to be prefixed with ./ or Vim will believe it is a Vim command instead of a filename. I know you can say -P ./ to _path_files to get the prefix for all files, but I would rather that it was added only where it's needed. By also saying -g '+*' it will only apply to files starting with +, but now these files are the only ones that are completed. Any help is appreciated. -- Haakon