I'm using vim with the latex-suite package installed on Ubuntu 11.10 to edit LaTeX files. The latex-suite highlights the LaTeX source as I edit it, but it seems to get very confused after something like $\sigma_{\{x,y\}}$. The LaTeX code is correct; it compiles and displays fine, but highlighting after this symbol is very strange. I tried to post a picture of what I get, but apparently new users can't post pictures. Here is some example code which causes problems for me:
\documentclass{article}
\begin{document}
This text appears normally. $\sigma_{\{x,y\}}$
But this text is highlighted very strangely.
\end{document}
Is there a way to fix this? As it is, I'd say the highlighting scheme in vim-latex is a little aggressive; I could do with something quite a bit simpler (e.g. one color for text, one for math, and one for environment declarations like \begin{environementName} and \end{environmentName}).


latex-suite. You can work around this using\(and\)to enter math mode, which is the recommended way. – Marco Apr 17 '12 at 10:35