Tizen 2.0 Release
[external/vim.git] / runtime / ftplugin / zsh.vim
1 " Vim filetype plugin file
2 " Language:         Zsh shell script
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2011-01-23
5
6 if exists("b:did_ftplugin")
7   finish
8 endif
9 let b:did_ftplugin = 1
10
11 let s:cpo_save = &cpo
12 set cpo&vim
13
14 let b:undo_ftplugin = "setl com< cms< fo<"
15
16 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
17
18 let b:match_words =
19       \   &matchpairs
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'
24
25 let &cpo = s:cpo_save
26 unlet s:cpo_save