Comment 5 for bug 642341

Revision history for this message
Jakob (hellwoofa) wrote :

I simply love vim!

Found this wiki site: http://vim.wikia.com/wiki/Avoiding_the_"Hit_ENTER_to_continue"_prompts

and the important part is here:
Finally, you can use :silent to keep external commands from triggering the "Hit ENTER" prompt:
===============
:silent !echo Hello
===============
If the command generates any output, you may need to manually refresh the screen once you return to Vim (by typing Ctrl-L or entering :redraw!). If you're running a GUI version of Vim, :silent may keep you from seeing any output from the command at all! To fix the above problem with regular vim, you can use a custom command like this one:
=========================
command! -nargs=1 Silent
\ | execute ':silent !'.<q-args>
\ | execute ':redraw!'
========================
Use it like a regular command:
:Silent command

I’ve just put the Silent command definition into the beginning of latexmk.vim and inserted “Silent“ in lines 83 and 159 before “execute“ and it works!

Beautiful!