xref: /vim-8.2.3635/runtime/ftplugin/zsh.vim (revision dee2e315)
1" Vim filetype plugin file
2" Language:         Zsh shell script
3" Maintainer:       Nikolai Weibull <[email protected]>
4" Latest Revision:  2011-01-23
5
6if exists("b:did_ftplugin")
7  finish
8endif
9let b:did_ftplugin = 1
10
11let s:cpo_save = &cpo
12set cpo&vim
13
14let b:undo_ftplugin = "setl com< cms< fo<"
15
16setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
17
18let b:match_words =
19      \   &matchpairs
20      \ . ',\<if\>:\<elif\>:\<else\>:\<fi\>'
21      \ . ',\<case\>:^\s*([^)]*):\<esac\>'
22      \ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
23let b:match_skip = 's:comment\|string\|heredoc\|subst'
24
25let &cpo = s:cpo_save
26unlet s:cpo_save
27