2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
|
|
|
|
|
2013-09-16 19:43:28 -04:00
|
|
|
" 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('<sfile>: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
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|