Tuesday, September 7, 2010

Re: Can I make :cwindow only show the match item.

On 2010-09-08, 777 wrote:
> Hello All:
> When I use pc-lint with vim. I use make & cwindows to get
> a quickfix windows.
> But I find :cw show all complier output, don't like clist
> only some the match errfromat line.
> How can if make :cwindow only show match line?
> Thanks.

I am assuming that your 'errorformat' already basically works and
that the only problem you're having is that unwanted strings appear
in the quickfix list. To fix that problem, just add this line below
your current 'errorformat' specification:

set efm+=%-G%.%#

That will cause any lines not matched by previous 'errorformat'
patterns to be ignored. See

:help efm-ignore

There is an example of its use here:

:help errorformat-javac

Regards,
Gary

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

Post a Comment