I have created a table of contents at the beginning of my markdown document and linked the headers of the document:
# TOC
[first header](#first-header)
# first header
Now, having opened the document in vim, I want to jump from the reference in the table of contents directly to the respective header. What is the keystroke combination? I found out that with gf
I can jump to linked files, but for my case everything is in the same document.
:vimgrep /^#/ %
; I've customized mine a bit more here and here