2
votes
0answers
46 views

How to change (Mac)Vim's syntax highlighting rules for (La)TeX files?

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: ...
8
votes
1answer
320 views

Why does Vim highlighting treat _a differently than _b in math mode?

I am not using vim-latex, just the regular vim syntax highlighting for latex. To make sure of this I tested this by running: vim -u NONE -N I notice that if I am in math mode "f_a" will display ...
6
votes
2answers
165 views

Highlight / color parts of text

LaTex newbie here. Currently using vim with solarized color scheme to edit .tex documents. When writing I often jump around to different parts of the document, leaving gaps behind to work on later. ...
1
vote
1answer
253 views

Highlighting for viml in latex?

I want syntax highlighting for vim scripts in my latex document. So if I write \begin{lstlisting} autocmd FileType c setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4 \end{lstlisting} it ...
6
votes
1answer
568 views

vim-latex with strange (unwanted) highlighting [closed]

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 ...
18
votes
1answer
322 views

Vim Configuration for expl3

I've started with programming in expl3 and vim doesn't realise that underscores are now part of LaTeX identifiers. I'd be much obliged if somebody could explain how to best configure vim so it has ...
4
votes
1answer
323 views

What does a number followed by “ in” mean?

The TeX syntax highlighter that I use colors all occurrences of a number followed by " in", e.g. 0 in or 32 in in a dangerous bright red, in almost all contexts. Why?
8
votes
1answer
1k views

Inline comments in LaTeX

Is it possible to make inline comments in LaTeX that do not extend until the end of the line? The actual problem I'm trying to solve is vim's annoying highlighting of the non-curly end-bracket here: ...