blob: fe8efc59abdd3cb337cc57f5cc4039f76512d51f [file] [log] [blame]
Bram Moolenaar42eeac32005-06-29 22:40:58 +00001" Vim filetype plugin file
Bram Moolenaarf55e4c82017-08-01 20:44:53 +02002" Language: Zsh shell script
3" Maintainer: Christian Brabandt <cb@256bit.org>
4" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
Bram Moolenaar2f058492017-11-30 20:27:52 +01005" Latest Revision: 2017-11-22
Bram Moolenaarf55e4c82017-08-01 20:44:53 +02006" License: Vim (see :h license)
7" Repository: https://github.com/chrisbra/vim-zsh
Bram Moolenaar42eeac32005-06-29 22:40:58 +00008
9if exists("b:did_ftplugin")
10 finish
11endif
12let b:did_ftplugin = 1
13
Bram Moolenaare37d50a2008-08-06 17:06:04 +000014let s:cpo_save = &cpo
15set cpo&vim
16
Bram Moolenaar0dc065e2005-07-04 22:49:24 +000017let b:undo_ftplugin = "setl com< cms< fo<"
Bram Moolenaar42eeac32005-06-29 22:40:58 +000018
Bram Moolenaar0dc065e2005-07-04 22:49:24 +000019setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
Bram Moolenaare37d50a2008-08-06 17:06:04 +000020
Bram Moolenaar2f058492017-11-30 20:27:52 +010021let b:match_words = ',\<if\>:\<elif\>:\<else\>:\<fi\>'
Bram Moolenaard58e9292011-02-09 17:07:58 +010022 \ . ',\<case\>:^\s*([^)]*):\<esac\>'
23 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
24let b:match_skip = 's:comment\|string\|heredoc\|subst'
25
Bram Moolenaare37d50a2008-08-06 17:06:04 +000026let &cpo = s:cpo_save
27unlet s:cpo_save