I want to redirect the output of some Windows program directly to gvim basically for searching the output. Say for example the result of findstr cmd. Is it possible to do this without dumping it to a file and subsequently loading that file in gvim?
sure:
dir | gvim -
the -
option tells vim
to open stdin
This works for Windows and Linux versions.
If you're already in Vim you can use the r
command to read like this:
:r !<cmd>
E.g.
:r !dir
You can read it from vim with
:r !dir (for example)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With