Back to TILs

How to populate vim quickfix window

Date: 2022-12-23Last modified: 2022-12-24

Try this on command to fill quickfix with lines which matches function signature:

:vim /^\s*\w\+\s\+\w\+\s*(.*)/ % | cw

Use this in .vimrc

map toc :vim /-- #/ % \| cw <CR>

References