Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vim-5.4l: patch to recognize ZSH new completion functions
- X-seq: zsh-workers 6591
- From: Bram Moolenaar <Bram@xxxxxxxxxxxxx>
- To: borsenkow.msk@xxxxxx
- Subject: Re: vim-5.4l: patch to recognize ZSH new completion functions
- Date: Tue, 08 Jun 1999 23:21:11 +0200
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <Pine.SV4.4.10.9906081607270.17600-100000@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Sender: Bram@xxxxxxxxxxxxx
Andrej -
> This patch enables vim to correctly recognize ZSH new completion functions
> as ZSH scripts. I hope, they are already in stable enough state to justify
> inclusion in VIM.
Looks OK. I suppose the strings "#compdef" and "#autoload" would not appear
in a non-zsh file, like "bash"?
It's a bit shorter when combined with the other "if" for zsh:
" Z shell scripts
elseif getline(1) =~ '^#!.*[/\\]zsh\>'
\ || getline(1) =~ '^#compdef\>'
\ || getline(1) =~ '^#autoload\>'
set ft=zsh
I'm using the new line-continuation method here, version 5.4* required.
Thanks for the suggestion!
- Bram
--
hundred-and-one symptoms of being an internet addict:
69. Yahoo welcoms you with your own start page
--/-/---- Bram Moolenaar ---- Bram@xxxxxxxxxxxxx ---- Bram@xxxxxxx ---\-\--
\ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /
Messages sorted by:
Reverse Date,
Date,
Thread,
Author