Highlighting Doxygen tags in Vim

Doxygen highlighting is set up by default on most Vim installations, but for some reason it’s disabled. There are two options for enabling it.

First, it can be enabled globally. This means adding the parameters to the global Vim configuration. Note that you may need to be root for this to work (ie: sudo echo “let g:load…), and that the path may need to change for different linux distributions (this one works for ubuntu):

echo “let g:load_doxygen_syntax=1” >> /etc/vim/vimrc

Alternatively, you can configure doxygen highlighting for your user only:

echo “let g:load_doxygen_syntax=1” >> ~/.vimrc

Either way, you will need to restart any vim applications before the changes will take effect.

Leave a Reply

Your email address will not be published.