How to get SpellBad highlighting under the cursor?

8 views
Skip to first unread message

Lifepillar

unread,
Sep 7, 2020, 4:58:58 PM9/7/20
to vim...@googlegroups.com
Is there a way in Vim Script to get the highlighting under the cursor
when it is SpellBad or similar group?

For instance, after:

:new
: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).

Thanks,
Life.

Reply all
Reply to author
Forward
0 new messages