I'm a long-time AUCTeX/Emacs user that switched to Vim/LaTeX-Box recently. I got everything working the way I want and grew pretty fond of Vim, but there's still one unusual thing that bothers me: Vim's syntax highlighting rules for LaTeX seem to be different and more "noisy" than those of AUCTeX/Emacs.

See the attached screenshots.

MacVim+LaTeX-Box+Solarized Emacs+AUCTeX+Solarized

Both show the same place of the same file using Solarized color scheme, but in Vim there's a lot more colors, which I find distracting. Particularly the fact that $ symbols that open inline math environments are colored differently than the contents of that environmnent makes editing proofs slightly annoying. Is it possible to modify Vim highlighting rules in a relatively easy way?

closed as off-topic by jub0bs, Svend Tveskæg, user13907, ChrisS, Adam Liter Sep 1 '14 at 0:55

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    You'll have to modify the syntax definition for tex languages in tex.vim, which is located in $VIMRUNTIME/syntax (on my Mac, $VIMRUNTIME resolves to /Applications/MacVim.app/Contents/Resources/vim/runtime). – jub0bs Jun 17 '14 at 10:46
  • thanks @Jubobs, I'll try to make my own tex.vim then. – pkazmierczak Jun 17 '14 at 14:38
  • 4
    This question appears to be off-topic because it is more about Vim than about TeX. – jub0bs Sep 1 '14 at 0:04
  • 1
    instead of closing the question -- could moderators move it to stackoverflow? – Ayrat Nov 7 '15 at 15:08