To show quick-access window for matching lines in the current file:

:vimgrep pattern %
:cwindow

Where pattern is the pattern to search for (e.g. /^#\s/ to find top-level markdown headings) and % means the current file to VIM.

Use standard VIM navigation keys to jump between windows and, in the search results window, press return to jump to that line in the main window.