Search code examples
vimlatex-suite

Vim: LaTeX-suite table of contents


maybe I'm drastically overlooking something trivial, but is there any possibility in Vim (with LaTeX-suite) to view the table of contents?

To be more precisely, I'm looking for something equivalent to emacs'/AucTeX' C-c =, which displays a nice readable table of contents in a separate buffer.


Solution

  • maybe use:

    :let @a=''
    :g/\\\(part\|chapter\|section\|subsection\|subsubsection\|paragraph\|subparagraph\)\>/y A
    :winc n
    :put a
    

    maybe have a function to do that and map whatever you like to that.