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:
:redir @" | silent map | redir END | new | put!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With