Sunday, July 12, 2020

Re: [Hint] quickfix list in vim for follow up errors

On 2020-07-13, Kunal Chauhan wrote:

> On Sun, Jul 12, 2020 at 11:15 PM Christian Brabandt wrote:
>
> On So, 12 Jul 2020, Kunal Chauhan wrote:
>
> > my vim version is 7.4.1099
>
> For the cfilter plugin, you need at least vim 8.1.0311.
>
> Can you install a newer version?

> no due to some restrictions I have no access to my
> particular development system . any other alternative ? to do the same stuff, 

There are three that I can think of.

1. Change the compiler options to ignore or silence warnings.

2. Add a filter to the make pipeline by setting 'makeprg' or
'shellpipe' appropriately, as described in ":help quickfix.txt".
Search for "^Filtering messages". See also ":help 'makeprg'".

For example (untested):

let &makeprg = "make $* \\| grep -vi 'warning'"

3. Change 'errorformat' to exclude warnings.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200713062601.GA3174%40phoenix.

No comments: