if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX indent file (part of LaTeX Box) " Maintainer: David Munger (mungerd@gmail.com) if exists("g:LatexBox_custom_indent") && ! g:LatexBox_custom_indent finish endif if exists("b:did_indent") finish endif let b:did_indent = 1 setlocal indentexpr=LatexBox_TexIndent() setlocal indentkeys=0=\\end,0=\\end{enumerate},0=\\end{itemize},0=\\end{description},0=\\right,0=\\item,0=\\),0=\\],0},o,O,0\\ let s:list_envs = ['itemize', 'enumerate', 'description'] " indent on \left( and on \(, but not on ( " indent on \left[ and on \[, but not on [ " indent on \left\{ and on {, but not on \{ let s:open_pat = '\\\@ 703 || (v:version == 703 && has('patch598')) augroup LatexBox_Completion autocmd! autocmd CompleteDone call Latexbox_CallIndent() augroup END endif " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 endif