Skip to content

Instantly share code, notes, and snippets.

@romainl
romainl / redir.md
Last active November 10, 2025 00:31
Redirect the output of a Vim or external command into a scratch buffer

Redirect the output of a Vim or external command into a scratch buffer

Usage (any shell)

Show the full output of command :hi in a scratch buffer:

:Redir hi

Show the full output of command :!ls -al in a scratch buffer: