Saturday, July 4, 2020

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

On 2020-07-04, Kunal Chauhan wrote:
> Hi Team.
>
> I am using the :make all from vim in my source code.
> as the code has multiple warning and some error.
>
>  Point is: if i do the clist it shows multiple lines of code with warning , but
> I want to follow up the error part only , with out scrolling so much in clist .
> Is there will some nicer way of finding the error part easily of compilation
> via quickfixlist in large code base ?

I usually use the cfilter plugin for this. It comes with Vim, so
you just need to enable it by putting

packadd cfilter

in your vimrc. See

:help cfilter-plugin

Then you can filter your quickfix list to contain only errors with

:Cfilter error

or remove all warnings with

:Cfilter! warning

Those commands create new quickfix lists without affecting the
original list, you can return to the original list with

:colder

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/20200704152814.GA24359%40phoenix.

No comments:

Post a Comment