Vim is syntax highlighting my file in a funny way, and I want to know what syntax file is responsible for this behaviour. How do I find out what syntax files vim has loaded?
The syntax for the current buffer can be queried via
It usually (but not necessarily) corresponds to the buffer's filetype (
For a deeper look,
shows all syntax definitions (some syntaxes (can) include other language's syntaxes, e.g.
html for the JavaDoc comment markup).