375
|
1 " Vim filetype plugin file
|
|
2 " Language: ConTeXt typesetting engine
|
839
|
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2006-04-19
|
375
|
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
|
389
|
14 let b:undo_ftplugin = "setl com< cms< def< inc< sua< fo<"
|
375
|
15
|
839
|
16 setlocal comments=b:%D,b:%C,b:%M,:% commentstring=%\ %s formatoptions+=tcroql
|
375
|
17
|
|
18 let &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
|
|
23 let &l:include = '^\s*\%(input\|component\)'
|
|
24
|
|
25 setlocal suffixesadd=.tex
|
|
26
|
|
27 if 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'
|
|
32 endif " exists("loaded_matchit")
|
|
33
|
|
34
|
|
35 let &cpo = s:cpo_save
|
|
36 unlet s:cpo_save
|