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

vim-5.4l: patch to recognize ZSH new completion functions



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