At the bottom of my file, I'd to have something like this:
// vim: syntax=cpp.doxygen
Only, when I do that, it breaks my auto-load of my own cpp.vim.
au BufNewFile,BufReadPost *.cpp so $HOME/vim/presentrack.vim
I write code where my with C++ classes have variable members that start with f_
and with my syntax I see those in a specific color.
Also I define some global variables (rarely, though) which start with g_
. Again I give them a special color.
I also like the special doxygen highlighting because it shows me whether I mistype something without having to run doxygen (it helps fixing some mistakes quickly.)
Is there a way to get the best of both worlds?
Right now, my presentrack.vim
has an include:
source $VIMRUNTIME/syntax/cpp.vim
and I would imagine I would have to instead include doxygen and not have doxygen at the bottom of my .cpp file?
What I'd like is a way that both syntaxes would co-exist, although I would imagine that is not supported, I thought I'd ask.