Reputation: 9575
I'm trying to debug a syntax file with a few hundred syntax
and highlight
commands, many of which with the same result.
I want to know which of these are being applied to a particular string to decide how to colour it.
Upvotes: 4
Views: 194
Reputation: 9575
I found the solution in Vi Stack Exchange (thanks @mkrieger1 for the link).
:echo synIDattr(synID(line("."), col("."), 1), "name")
Upvotes: 5