I don't know of a direct way to get a list of only the things loaded for the current buffer based on filetype, but :scriptnames
will list everything that's been loaded, including system/default plugins, runtime scripts, etc.
To figure out what's additionally autoloaded for a specific filetype, start Vim with no arguments, run :scriptnames
, then open a file of the type you care about, and run :scriptnames
again. If anything new was autoloaded for the filetype, you'll see it appended to the list the second time.
You can capture the output (to paste into a buffer, for example) with redir
:
:redir @a
:scriptnames
:redir END
You'll see the output displayed, but it will also be copied to register a
. You can paste that into a buffer with "ap
.
ftplugin/css.vim
for instance. It depends on whether false positive are acceptable or not.