How to get SpellBad highlighting under the cursor?

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to get SpellBad highlighting under the cursor?

Is there a way in Vim Script to get the highlighting under the cursor
when it is SpellBad or similar group?

For instance, after:

    :set ft=c
    :set spell
    i// Whaat?

I would like to determine that "Whaat" is highlighted with SpellBad.

I have tried with synIDattr(), but it always returns the attributes of
the underlying highlight group (Comment in the previous example).


You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit

You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit