tex.vim (575B)
1 let s:pdflatex = 'pdflatex -file-line-error -halt-on-error -interaction=nonstopmode -synctex=1 document.tex' 2 let &l:makeprg = expand(s:pdflatex) 3 4 " Match file name 5 setlocal errorformat=%-P**%f 6 setlocal errorformat+=%-P**\"%f\" 7 8 " Match LaTeX errors 9 setlocal errorformat+=%E!\ LaTeX\ %trror:\ %m 10 setlocal errorformat+=%E%f:%l:\ %m 11 setlocal errorformat+=%E!\ %m 12 13 " More info for undefined control sequences 14 setlocal errorformat+=%Z<argument>\ %m 15 16 " More info for some errors 17 setlocal errorformat+=%Cl.%l\ %m 18 19 " Catch-all to ignore unmatched lines 20 setlocal errorformat+=%-G%.%#