diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-12-30 11:10:32 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-12-30 11:10:32 +0100 |
commit | bb85059bacd5b415a012f25679111a0e55d3c6d9 (patch) | |
tree | 315b2238ec4840aa4bf00ae48276bdffded07673 /ftplugin/tex_LatexBox.vim | |
parent | 11f53253ad9fd0cd3e7a44ed9f8c80a4f265b46e (diff) | |
download | vim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.tar.gz vim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.zip |
Update
Diffstat (limited to 'ftplugin/tex_LatexBox.vim')
-rw-r--r-- | ftplugin/tex_LatexBox.vim | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ftplugin/tex_LatexBox.vim b/ftplugin/tex_LatexBox.vim new file mode 100644 index 00000000..6c8899a6 --- /dev/null +++ b/ftplugin/tex_LatexBox.vim @@ -0,0 +1,37 @@ +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('<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 + +endif |