: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.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community: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.
this can be done with redir >names.txt|silent scriptnames|redir END
I'm using silent
here to avoid a -- more -- -prompt.
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"')