Use options from Ben Fishers filetype plugin

This commit is contained in:
Karl Yngve Lervåg 2015-04-01 15:56:27 +02:00
parent da69a60312
commit 97f0fa45b8

View File

@ -130,7 +130,20 @@ function! s:init_options() " {{{1
endfor
setlocal suffixesadd=.tex
setlocal commentstring=\%\ %s
setlocal comments=sO:%\ -,mO:%\ \ ,eO:%%,:%
setlocal commentstring=%%s
let &l:define = '\\\([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip'
let &l:define .= '\|toks\)\=def\|\\font\|\\\(future\)\=let'
let &l:define .= '\|\\new\(count\|dimen\|skip'
let &l:define .= '\|muskip\|box\|toks\|read\|write\|fam\|insert\)'
let &l:define .= '\|\\\(re\)\=new\(boolean\|command\|counter\|environment'
let &l:define .= '\|font\|if\|length\|savebox'
let &l:define .= '\|theorem\(style\)\=\)\s*\*\=\s*{\='
let &l:define .= '\|DeclareMathOperator\s*{\=\s*'
let &l:include = '\\\(input\|include\){'
let &l:includeexpr = "substitute(v:fname, '^.\\{-}{\\|}.*', '', 'g')"
let &cpo = s:save_cpo
unlet s:save_cpo