I'm wanting to see how groups were created and what they are contained in.

What I'm doing now is this and then I search for the group.

:Verbose syntax

What I would like to do is this.

:verbose syntax SomeGroup
:echo SomeFunction('SomeGroup')
SomeGroup xxx match /\vsomeregex/ containedin=somewhere

1 Answer 1


I figured it out.

redir => foo | silent syntax list SomeGroup | redir END

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.