blob: 6cbc380dc3a879ce8f4decd70dcb4f11db3ccb0a [file] [log] [blame]
Bram Moolenaar42eeac32005-06-29 22:40:58 +00001" Vim filetype plugin file
Bram Moolenaarf2571c62015-06-09 19:44:55 +02002" Language: Zsh shell script
3" Maintainer: Christian Brabandt <cb@256bit.org>
4" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
5" Latest Revision: 2015-05-29
6" 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 Moolenaard58e9292011-02-09 17:07:58 +010021let b:match_words =
22 \ &matchpairs
23 \ . ',\<if\>:\<elif\>:\<else\>:\<fi\>'
24 \ . ',\<case\>:^\s*([^)]*):\<esac\>'
25 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
26let b:match_skip = 's:comment\|string\|heredoc\|subst'
27
Bram Moolenaare37d50a2008-08-06 17:06:04 +000028let &cpo = s:cpo_save
29unlet s:cpo_save