Sometimes I want to dump outputs of a command -internal or external, to a buffer in NeoVim.
map command as an example.
As you may already know,
map is an internal command which lists what is mapped.
To see if a particular key -
leader as an example, has already been bound we
You can use a specific mode to narrow your scope:
:nmapfor normal mode mappings
:vmapfor visual mode mappings
:imapfor insert mode mappings
In order to see all keymaps we run:
This output usually will be long and complex. In order to see all my keymaps in a searchable buffer run below command:
For Vim user,
execute commands requires Vim 8+
You can also use vertical splits with
If you want to dump the outputs of an external command, you can run it like below:
:enew | .! <command> " or " :enew | read !<command>