0

This question already has an answer here:

:scriptnames can list all plugins installed in my vim.
How to write the output of scriptnames into a file?

:scriptnames > names.txt

It can't do the trick.

marked as duplicate by statox Apr 16 '18 at 7:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

this can be done with redir >names.txt|silent scriptnames|redir END

I'm using silent here to avoid a -- more -- -prompt.

4

If you just want to list them in a buffer, there is

:new
:put=execute('scriptnames')

If you need to search, well, there is filter()

:echo filter(split(execute('scriptnames'), "\n"), 'v:val =~ "syntax"')

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