I would like to search with vimgrep only within a visual selection of the current file and not the whole file. Is that possible and how? I couldn't find something for this case with Google or in vim help.
The reason why I want this is because I need the result in the quicklist (copen
) and :g/FOO
which is showing the matching lines at the bottom is not doing this job.
'< and '>
, after qflist was filled, you filter the entries, remove the entries outside the selection range. I think it won't be too complicated. – Elanorelapid