summaryrefslogtreecommitdiffstats
path: root/ftplugin/tex_LatexBox.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-17 01:43:28 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-17 01:43:28 +0200
commitba1305772d6dc5939fd7fbad57108aa71ee2d158 (patch)
tree17fbd0d7dcd8f3f7847a953cb5d7eed98bd4cd65 /ftplugin/tex_LatexBox.vim
parentff3cc42bf3ef067324364b5a40f2e457d202588c (diff)
downloadvim-polyglot-ba1305772d6dc5939fd7fbad57108aa71ee2d158.tar.gz
vim-polyglot-ba1305772d6dc5939fd7fbad57108aa71ee2d158.zip
fix: Switch latex to LaTeX-Box-Team/LaTeX-Box, fixes #6
Diffstat (limited to 'ftplugin/tex_LatexBox.vim')
-rw-r--r--ftplugin/tex_LatexBox.vim33
1 files changed, 33 insertions, 0 deletions
diff --git a/ftplugin/tex_LatexBox.vim b/ftplugin/tex_LatexBox.vim
new file mode 100644
index 00000000..2945851d
--- /dev/null
+++ b/ftplugin/tex_LatexBox.vim
@@ -0,0 +1,33 @@
+" 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