10 years ago
Prints a first-level TOC of the current markdown buffer. Type :230
to jump to the corresponding heading.
:g/^# /#
Romain Lafourcade 10 years ago
@Vadym, yes, the first-level limitation was on purpose.
:g/^#/#
would be enough for all headers, by the way.
Vadym Khokhlov 10 years ago ✎
Nice! But this command shows only first-level headers.
The command for all headers is: :g/^#\+ /#