I'm using Vim (with vim-latex) to write my LaTeX documents.
I made a bunch of custom commands to mark different kinds of "variables" (as in programming languages) I use in text, in formulas and in code listings. I always wrap the variable names in my commands to ensure consistent text formatting and have the ability to conveniently change the format at a later point.
Usually a command—e.g. \somevariable{somename}
—does not contain an orthographically correct name.
The problem is, Vim's spell checker marks all my variable names as wrong and this clutters the spell checking (e.g. when I want to step between errors).
Another example are TikZ pictures where the node names of my graph are marked as spelt wrong.
Is there a (preferably easy) way to exclude the contents (the stuff inside {
and }
) of custom commands from spell checking?
(I already found this question but this is not exactly what I want as it only deals with standard commands/environments and adding all my custom commands here is quite cumbersome)