Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Adding a prefix to certain filename completions
- X-seq: zsh-users 9049
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Adding a prefix to certain filename completions
- Date: Thu, 07 Jul 2005 13:54:16 +0100
- In-reply-to: <20050707121138.GC5452@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050704193711.GF6330@xxxxxxxxxxxxxxxx> <20050705042324.GA21301@xxxxxxxxxxxxxxxxx> <20050705080946.GC5333@xxxxxxxxxxxxxxxx> <Pine.OSX.4.58.0507050720380.17349@xxxxxxxxxxxxxxx> <1050706050022.ZM13972@xxxxxxxxxxxxxxxxxxxxxxx> <20050706113154.GA5313@xxxxxxxxxxxxxxxx> <20050707020210.GA5084@xxxxxxxxxxxxxxxx> <1050707054007.ZM14965@xxxxxxxxxxxxxxxxxxxxxxx> <20050707105817.GA5452@xxxxxxxxxxxxxxxx> <5826.1120735089@xxxxxxx> <20050707121138.GC5452@xxxxxxxxxxxxxxxx>
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 <pws@xxxxxxx> 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.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author