Vim :vimgrep and External grepprg: Bounding Matches Before Quickfix Population
Goal: Reduce the size of the quickfix list generated by :vimgrep when searching large repositories so that pagination with :cnext/:cprev remains responsive. Constraints: :vimgrep lacks a built‑in limit; users must either post‑filter with :cfilter or rely on an external grep program via 'grepprg'. Using an external grep’s -m/--max‑count flag can bound matches