Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Adding a prefix to certain filename completions



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