Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
vim-5.4l: patch to recognize ZSH new completion functions
- X-seq: zsh-workers 6524
- From: Andrej Borsenkow <bor@xxxxxxxxxxxxxxxxx>
- To: Bram@xxxxxxx, zsh-workers@xxxxxxxxxxxxxx
- Subject: vim-5.4l: patch to recognize ZSH new completion functions
- Date: Tue, 8 Jun 1999 16:12:27 +0400 (MSD)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: borsenkow.msk@xxxxxx
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.
regards
/andrej
=================
--- scripts.vim.org Mon Jun 7 18:14:38 1999
+++ scripts.vim Tue Jun 8 16:03:15 1999
@@ -43,6 +43,10 @@
elseif getline(1) =~ '^#!.*[/\\]zsh\>'
set ft=zsh
+" Z shell completion functions
+elseif getline(1) =~ '^#compdef\>' || getline(1) =~ '^#autoload\>'
+ set ft=zsh
+
" ELM Mail files
elseif getline(1) =~ '^From [a-zA-Z][a-zA-Z_0-9\.=-]*\(@[^ ]*\)\= .*[12][09]\d\d$'
set ft=mail
Messages sorted by:
Reverse Date,
Date,
Thread,
Author