Important update: pdf is now mandatory

Also adds verbose to flags to increase debug output when needed.
This commit is contained in:
Karl Yngve Lervåg 2015-10-01 13:44:54 +02:00
parent 1013889530
commit 87946f96b4

View File

@ -12,7 +12,7 @@ function! vimtex#latexmk#init_options() " {{{1
call vimtex#util#set_default('g:vimtex_latexmk_background', 0)
call vimtex#util#set_default('g:vimtex_latexmk_callback', 1)
call vimtex#util#set_default('g:vimtex_latexmk_continuous', 1)
call vimtex#util#set_default('g:vimtex_latexmk_options', '-pdf')
call vimtex#util#set_default('g:vimtex_latexmk_options', '')
call vimtex#util#set_default('g:vimtex_latexmk_progname',
\ get(v:, 'progpath', get(v:, 'progname')))
call vimtex#util#set_default('g:vimtex_quickfix_autojump', '0')
@ -382,7 +382,7 @@ function! s:latexmk_build_cmd() " {{{1
endif
endif
let cmd .= ' ' . g:vimtex_latexmk_options
let cmd .= ' -verbose -pdf ' . g:vimtex_latexmk_options
let cmd .= ' -e ' . vimtex#util#shellescape(
\ '$pdflatex =~ s/^((.(?<!^internal(?=\s)))*?) /$1 -file-line-error /')
if g:vimtex_latexmk_build_dir !=# ''