Let’s say I use the ag.vim plugin to search for the string disabled through multiple files. It returns me some results in the quickfix window:
1
My solution to this problem has always been to make the quickfix buffer modifiable by default:
:autocmd BufReadPost quickfix set modifiable
(The above command is to be put in the .vimrc file.)
Doing this opens a whole range of possibilities for any appropriate
edits, such as removing unrelated entries manually or by filtering
using the :global and :vglobal commands, grouping and reordering
related entries, adding blank lines or comments in free form, etc.