I'd like to get the output of an argumentless :map
call so that I can use vim's search functionality to look for mappings.
I found about :redir
, which redirects the output of ex commands into a variable, register, or file, but it doesn't seem to work for map, which must be outputting the mappings in some different way from what, for example :echo 'hello world'
does.
You can use
:redir
for that. Here's a oneliner that uses the default register: