On 30/04/11 5:13 AM, cyboman wrote:
the compiler and lint tool my company is using generate 3 kinds of
messages: errors, warnings and info. right now my keys are mapped in
such a way that in quick fix window i jump between warnings, errors
and info. is there a way to setup key mappings so that one key would
only jump between errors, the other between warnings and the third
between info, i.e.

map<F2>  jump to the next error
map<F3>  jump to the next warning
map<F4>  jump to the next info.

here is what my errorformat is set to:

set errorformat=%f\(%l\)\ :\ %m,%C\ \ %p^\,%C%p~,%A\"%f\"\\,%l%m\,%C%m
\,%Z

any help is appreciated.

Your errorformat has no %t in it, so it is not detecting error types. So
we'll need some way to do that for starters. Can you give some examples
of the messages you receive? We can then see whether to integrate a %t
into errorformat or use some other appraoch.

Either way, I think it should be possible with a little scripting to
jump to the previous/next entry of a certain type.

Ben.



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

Reply via email to