Monday, May 23, 2011

errorformat, error/warning number with letters in it

my compiler produces errors/warnings in the following format:

"path\to\fiile1",line_number level[tag]: message
("file1",53 Warning[Te551]: message for file 1)
where level is either warning/info/error, and tag is usually two
letters and a number (Te551).

right now i have my errorformat set to
set errorformat+=%E\"%f\"\\,%l%\\s%\\+Error%m,%Z " compiler error
set errorformat+=%W\"%f\"\\,%l%\\s%\\+Warning%m,%Z " compiler warning
set errorformat+=%I\"%f\"\\,%l%\\s%\\+Info%m,%Z " compiler info

which is displayed in the quick fix as
file1|53 warning| [Te551]: message for file 1

however i would like the tag to be displayed inside the vertical bars
(||), i.e something like this:

file1|53 warning Te551| message for file 1

does anybody know if this is possible?

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