I use vim as my editor and markdown to write the articles for my site. I think that the articles are easier to navigate when they have a table of contents.
Adding a table of contents was easy. Many plugins accomplish this. But I couldn't find a plugin that also added the anchors. And adding the anchors was a very tedious process. So I modified the vim-markdown-toc plugin to add the anchors.
If you are looking to do the same, I wrote a short post on how to do it with my modified version of the plugin. You can read about it here:
I hope you find it useful.