I type my LaTeX documents with Vim. I use both spell check and syntax highlight with the default plugins, although I use a customised colour scheme. With this setup, this is the typical view I get in LaTeX documents:
As you can see, comments (otherwise green) are also highlighted in red by the spell checker. I'd like the comments to be fully green regardless of the syntax to facilitate the visualisation. How can I ask Vim to force the priority of comments highlight over syntax?
:h syn-spell
you can turn it of with@NoSpell
in the syntax file. – Indirection@NoSpell
attribute, depending on a global variable you can set. Therefore, includinglet g:tex_comment_nospell=1
in the filetype script produces the desired behaviour. Do you think I should promote this comment as a self-answer for the sake of completeness? – Implant