How to populate vim quickfix window
vim quickfix
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>
vim quickfix
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>