From 032bc29cc5fff96de7190008d8b0fa0e63e2d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Mon, 1 Dec 2014 18:27:56 +0100 Subject: [PATCH] Minor adjustment to single shot compile --- autoload/latex/latexmk.vim | 10 ++-------- doc/latex.txt | 10 +++++++++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/autoload/latex/latexmk.vim b/autoload/latex/latexmk.vim index 6acfd9f..90b32da 100644 --- a/autoload/latex/latexmk.vim +++ b/autoload/latex/latexmk.vim @@ -165,16 +165,10 @@ function! latex#latexmk#compile_singleshot() " {{{1 " Start latexmk let exe = {} let exe.null = 0 - if !g:latex_latexmk_background - let exe.bg = 0 - let exe.silent = 0 - endif + let exe.bg = 0 + let exe.silent = 0 let exe.cmd = data.cmds.compile call latex#util#execute(exe) - - if g:latex_latexmk_background - echomsg 'latexmk compiling' - endif endfunction " }}}1 diff --git a/doc/latex.txt b/doc/latex.txt index 22331b5..99061e7 100644 --- a/doc/latex.txt +++ b/doc/latex.txt @@ -659,8 +659,16 @@ Compilation is started with |latex#latexmk#compile| or may be toggled by `latexmk`, which may be disabled with |g:latex_latexmk_continuous|. If it is disabled, then the option |g:latex_latexmk_background| may be used to decide if single shot compilation should run in the foreground or the background. + Single shot compilation may always be issued with the function -|latex#latexmk#compile_singleshot|. +|latex#latexmk#compile_singleshot|. This function ignores the +|g:latex_latexmk_background|` setting, though, and will show the output from +the `latexmk` command. The function is available through the command +|VimLatexCompileSS|, and if desired one may create a custom mapping such as > + + nnoremap ls :VimLatexCompileSS + +Here one may also use the |silent| command to ignore compilation output. If vim is compiled with the |+clientserver| option and if |g:latex_latexmk_callback| is enabled, then compilation errors are parsed