Hello,

 I'd like to know if there is a way to tell Vim to recognize identifiers
occurring inside the comments/strings in source code as being valid words.
E.g. if I have

        // function foo() does whatever it does
                    ~~~
        void foo() { ... }

and "spell" option is on, the first "foo" is highlighted as a misspelt word
as indicated above (the second one isn't as spell checking is done only inside
comments and strings (which is good, but not quite enough)). Is there any way
to ignore all identifiers for spell checking? E.g. ignore all words occurring
outside of comments/strings in the same buffer or maybe all identifiers from
the tags file or maybe something even better which I didn't think of?

 Thanks in advance for any ideas,
VZ


Reply via email to