Basically I need to create a quickfix buffer listing all lines that match a regex. What is the best way?
The global command may not be the best, but I think it should
Use caddexpr:-
g//caddexpr expand("%") . ":" . line(".") . ":" . getline(".")