for markdown at least.
So for LaTeX if I do...
:g/^\\\(sub\)*section/p#
35 \section{Introduction} 37 \section{Setup} 39 \subsection{CSS Setup} 66 \subsection{JS Setup} 74 \subsection{HTML Setup} 92 \subsection{React setup} 113 \section{Components} 261 \subsection{Card Box} 541 \section{Old Chunks} 562 \section{Index} 566 \section{Code Chunks}
:92
So for LaTeX if I do...
I get... and... Takes me to the React Setup subsection.