Skip to content

Instantly share code, notes, and snippets.

@romainl
romainl / redir.md
Last active November 15, 2026 01:37
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: