summaryrefslogtreecommitdiffstats
path: root/ftplugin/latex-box/latexmk.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-18 22:51:23 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-18 22:51:23 +0200
commit235a5631f96ca7613d0fe48fe3731a8ce76e436d (patch)
tree58fe585102a5dd1ed5b8b9efc202c6a880cafaa0 /ftplugin/latex-box/latexmk.vim
parentedf1aa4a1cc7993b33352870e099d1298d14f67f (diff)
downloadvim-polyglot-235a5631f96ca7613d0fe48fe3731a8ce76e436d.tar.gz
vim-polyglot-235a5631f96ca7613d0fe48fe3731a8ce76e436d.zip
Update latex-box and elixir
Diffstat (limited to 'ftplugin/latex-box/latexmk.vim')
-rw-r--r--ftplugin/latex-box/latexmk.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim
index 4ea3ff09..0049146a 100644
--- a/ftplugin/latex-box/latexmk.vim
+++ b/ftplugin/latex-box/latexmk.vim
@@ -5,6 +5,9 @@
if !exists('g:LatexBox_latexmk_options')
let g:LatexBox_latexmk_options = ''
endif
+if !exists('g:LatexBox_latexmk_env')
+ let g:LatexBox_latexmk_env = ''
+endif
if !exists('g:LatexBox_latexmk_async')
let g:LatexBox_latexmk_async = 0
endif
@@ -156,6 +159,9 @@ function! LatexBox_Latexmk(force)
let env = 'max_print_line=' . max_print_line
endif
+ " Set environment options
+ let env .= ' ' . g:LatexBox_latexmk_env . ' '
+
" Set latexmk command with options
if has('win32')
" Make sure to switch drive as well as directory