Hello, I use the following 'errorfomat' (in Automatic Tex Plugin http://www.vim.org/scripts/script.php?script_id=2945) to list LaTeX errors (this is the value, so the things are not escaped, for copy paste line to set efm to this value see the end of the message):
%E! LaTeX %trror: %m, %E! %m, %E!pdfTeX %trror: %m, %Cl.%l %m, %+C %m, %+C%.%#-%.%#, %+C%.%#[]%.%#, %+C[]%.%#, %+C%.%#%[{}\]%.%#, %+C<%.%#>%.%#, %C %m, %-GSee the LaTeX%m, %-GType H <return>%m, %-G ...%.%#, %-G%.%# (C) %.%#, %-G(see the transcript%.%#), %-G\s%#, %+O(%*[^()])%r, %+O%*[^()](%*[^()])%r, %+P(%f%r, %+P %\=(%f%r, %+P%*[^()](%f%r, %+P[%\d%[^()]%#(%f%r, %+Q)%r, %+Q%*[^()])%r, %+Q[%\d%*[^()])%r When there are no errors clist command will list all the lines of the log file. The question is how to modify it to do not list any line when there are no errors. Adding %-G%.%# after last %-G, make almost what I want, but only the first error 'Undefined control sequence' shows the sequence which makes the troubles. Here is copy paste line to set errorformat to the above value: let &errorformat="%E!\ LaTeX\ %trror:\ %m,\%E!\ %m,%E!pdfTeX %trror:\ %m,%Cl.%l\ %m,%+C\ \ %m,%+C%.%#-%.%#,%+C%.%#[]%.%#,%+C[]%.%#,%+C%.%#%[{}\\]%.%#,%+C<%.%#>%.%#,%C\ \ %m,%-GSee\ the\ LaTeX%m,%-GType\ \ H\ <return>%m,%-G ...%.%#,%-G%.%#\ (C)\ %.%#,%-G(see\ the\ transcript%.%#),%-G\\s%#,\%+O(%*[^()])%r,\%+O%*[^()](%*[^()])%r,\%+P(%f%r,\%+P\ %\\=(%f%r,\%+P%*[^()](%f%r,\%+P[%\\d%[^()]%#(%f%r,\%+Q%*[^()])%r,\%+Q[%\\d%*[^()])%r" Thanks, Marcin -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php