capture.vim icon indicating copy to clipboard operation
capture.vim copied to clipboard

Show Ex command output in buffer

capture.vim

Show Ex command output in a buffer

Example

  • Show all defined mappings in a buffer (you can search them).
:Capture map | map! | lmap
  • Show echoed messages again in a buffer.
:Capture mes
  • Show installed scripts in a buffer.
:Capture scriptnames
  • Import an external command's output to a buffer (like new | r!ls).
:Capture !ls
  • Show currently defined digraphs in a buffer.
:Capture digraphs