1" Vim filetype plugin file 2" Language: ConTeXt typesetting engine 3" Maintainer: Nikolai Weibull <[email protected]> 4" Latest Revision: 2008-07-09 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< def< inc< sua< fo<" 15 16setlocal comments=b:%D,b:%C,b:%M,:% commentstring=%\ %s formatoptions+=tcroql 17 18let &l:define='\\\%([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\=' 19 \ . 'def\|\\font\|\\\%(future\)\=let' 20 \ . '\|\\new\%(count\|dimen\|skip\|muskip\|box\|toks\|read\|write' 21 \ . '\|fam\|insert\|if\)' 22 23let &l:include = '^\s*\%(input\|component\)' 24 25setlocal suffixesadd=.tex 26 27if exists("loaded_matchit") 28 let b:match_ignorecase = 0 29 let b:match_skip = 'r:\\\@<!\%(\\\\\)*%' 30 let b:match_words = '(:),\[:],{:},\\(:\\),\\\[:\\],' . 31 \ '\\start\(\a\+\):\\stop\1' 32endif 33 34let &cpo = s:cpo_save 35unlet s:cpo_save 36