Simple latex ctags and taglist
Just a quick update because I find this incredibly useful
Exuberant ctags is a great tool for navigating code. Unfortunately it does not have support for latex. You can add the following code to ~/.ctags to add support for some simple latex tags:
This adds tags for sections, subsections, subsubsections and labels. Even though this is very basic, I find it’s all I need for editing latex documents.
taglist is a nice plugin for vim which autogenerates tags using exuberant-ctags and can list all the tags in a file in a separate window.
You can add latex support to it by adding this line in your ~/.vimrc (assuming you have already added the code given above to .ctags)
let tlist_tex_settings = 'latex;l:labels;s:sections;t:subsections;u:subsubsections'
Also, since I use the ‘-’ and ‘:’ characters a lot in my labels, I find it useful to add those characters to
iskeyword defines what characters are considered to be a part of the same word by commands like ‘w’ and ‘CTRL-]’