diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-11-06 23:55:01 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-11-06 23:55:01 +0100 |
commit | b2d556d384e13d3180013ef8161936a4c3b990cd (patch) | |
tree | 1e2b6d706d7dc2771b9cacb24a4183ecb4e34c24 /ftplugin | |
parent | 30c1920e4fa4e612238e1f435907c40ecfa47f33 (diff) | |
download | vim-polyglot-b2d556d384e13d3180013ef8161936a4c3b990cd.tar.gz vim-polyglot-b2d556d384e13d3180013ef8161936a4c3b990cd.zip |
Update latex, ruby and mason
Diffstat (limited to '')
-rw-r--r-- | ftplugin/latex-box/latexmk.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim index 0049146a..87ac2a99 100644 --- a/ftplugin/latex-box/latexmk.vim +++ b/ftplugin/latex-box/latexmk.vim @@ -143,6 +143,13 @@ function! LatexBox_Latexmk(force) let texroot = shellescape(LatexBox_GetTexRoot()) let mainfile = fnameescape(fnamemodify(LatexBox_GetMainTexFile(), ':t')) + " Check if latexmk is installed + if !executable('latexmk') + echomsg "Error: LaTeX-Box relies on latexmk for compilation, but it" . + \ " is not installed!" + return + endif + " Check if already running if has_key(g:latexmk_running_pids, basepath) echomsg "latexmk is already running for `" . basename . "'" @@ -301,7 +308,15 @@ endfunction " LatexmkClean {{{ function! LatexBox_LatexmkClean(cleanall) + " Check if latexmk is installed + if !executable('latexmk') + echomsg "Error: LaTeX-Box relies on latexmk for compilation, but it" . + \ " is not installed!" + return + endif + let basename = LatexBox_GetTexBasename(1) + if has_key(g:latexmk_running_pids, basename) echomsg "don't clean when latexmk is running" return |