1 " Vim filetype plugin file
2 " Language: Zsh shell script
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2011-01-23
6 if exists("b:did_ftplugin")
14 let b:undo_ftplugin = "setl com< cms< fo<"
16 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
20 \ . ',\<if\>:\<elif\>:\<else\>:\<fi\>'
21 \ . ',\<case\>:^\s*([^)]*):\<esac\>'
22 \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
23 let b:match_skip = 's:comment\|string\|heredoc\|subst'