Monday, August 15, 2011

Re: errorformat

Excerpts from Marcin Szamotulski's message of Mon Aug 15 09:03:36 +0200 2011:
> 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.
Why do you want to have no lines in the success case?
Eventually :cclose / copen will work equally well for you.

What about using exit code?

call sysetm('latex foo &> errors.txt')
if v:shell_error == 0
" exit code 0, probably everything is fine
cclose
else
" load errors into quickfix
cfile errors.txt
" open quickfix window
cope
fi

You may also be interested in this project:
https://launchpad.net/rubber

Its a python script rerunning latex pdftext etc multiple time doing some
additional magic also tidying errors.

Marc Weber

--
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

No comments: