From: Bram Moolenaar <Bram@moolenaar.net>
To: borsenkow.msk@sni.de
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: vim-5.4l: patch to recognize ZSH new completion functions
Date: Tue, 08 Jun 1999 23:21:11 +0200 [thread overview]
Message-ID: <199906082121.XAA10714@moolenaar.net> (raw)
In-Reply-To: <Pine.SV4.4.10.9906081607270.17600-100000@itsrm2.mow.siemens.ru>
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@moolenaar.net ---- Bram@vim.org ---\-\--
\ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /
prev parent reply other threads:[~1999-06-11 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-08 12:12 Andrej Borsenkow
1999-06-08 21:21 ` Bram Moolenaar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199906082121.XAA10714@moolenaar.net \
--to=bram@moolenaar.net \
--cc=borsenkow.msk@sni.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).