Minor adjustment to single shot compile
This commit is contained in:
parent
d40967a051
commit
032bc29cc5
@ -165,16 +165,10 @@ function! latex#latexmk#compile_singleshot() " {{{1
|
|||||||
" Start latexmk
|
" Start latexmk
|
||||||
let exe = {}
|
let exe = {}
|
||||||
let exe.null = 0
|
let exe.null = 0
|
||||||
if !g:latex_latexmk_background
|
|
||||||
let exe.bg = 0
|
let exe.bg = 0
|
||||||
let exe.silent = 0
|
let exe.silent = 0
|
||||||
endif
|
|
||||||
let exe.cmd = data.cmds.compile
|
let exe.cmd = data.cmds.compile
|
||||||
call latex#util#execute(exe)
|
call latex#util#execute(exe)
|
||||||
|
|
||||||
if g:latex_latexmk_background
|
|
||||||
echomsg 'latexmk compiling'
|
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
|
@ -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
|
`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
|
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.
|
if single shot compilation should run in the foreground or the background.
|
||||||
|
|
||||||
Single shot compilation may always be issued with the function
|
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 <localleader>ls :VimLatexCompileSS<cr>
|
||||||
|
|
||||||
|
Here one may also use the |silent| command to ignore compilation output.
|
||||||
|
|
||||||
If vim is compiled with the |+clientserver| option and if
|
If vim is compiled with the |+clientserver| option and if
|
||||||
|g:latex_latexmk_callback| is enabled, then compilation errors are parsed
|
|g:latex_latexmk_callback| is enabled, then compilation errors are parsed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user