1 " Vim filetype plugin file.
3 " Maintainer: Max Ischenko <mfi@ukr.net>
4 " Last Change: 2008 Mar 25
6 " Only do this when not done yet for this buffer
7 if exists("b:did_ftplugin")
11 " Don't load another plugin for this buffer
12 let b:did_ftplugin = 1
14 " Set 'formatoptions' to break comment lines but not other lines, and insert
15 " the comment leader when hitting <CR> or using "o".
16 setlocal fo-=t fo+=croql
20 setlocal suffixesadd=.lua
23 " The following lines enable the macros/matchit.vim plugin for
24 " extended matching with the % key.
27 if exists("loaded_matchit")
29 let b:match_ignorecase = 0
31 \ '\<\%(do\|function\|if\)\>:' .
32 \ '\<\%(return\|else\|elseif\)\>:' .
34 \ '\<repeat\>:\<until\>'
36 endif " exists("loaded_matchit")