if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX Box plugin for Vim " Maintainer: David Munger " Email: mungerd@gmail.com " Version: 0.9.6 if exists('*fnameescape') function! s:FNameEscape(s) return fnameescape(a:s) endfunction else function! s:FNameEscape(s) return a:s endfunction endif if !exists('b:LatexBox_loaded') let prefix = expand(':p:h') . '/latex-box/' execute 'source ' . s:FNameEscape(prefix . 'common.vim') execute 'source ' . s:FNameEscape(prefix . 'complete.vim') execute 'source ' . s:FNameEscape(prefix . 'motion.vim') execute 'source ' . s:FNameEscape(prefix . 'latexmk.vim') execute 'source ' . s:FNameEscape(prefix . 'folding.vim') " added by AH to add main.tex file finder execute 'source ' . s:FNameEscape(prefix . 'findmain.vim') execute 'source ' . s:FNameEscape(prefix . 'mappings.vim') let b:LatexBox_loaded = 1 endif " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 endif