Skip to content

Instantly share code, notes, and snippets.

View gn0's full-sized avatar

Gábor Nyéki gn0

View GitHub Profile
@romainl
romainl / redir.md
Last active October 20, 2025 23:56
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: