我可以将程序的输出重定向到 gvim 吗? [英] Can I redirect output of a program to gvim?

查看:21
本文介绍了我可以将程序的输出重定向到 gvim 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一些 Windows 程序的输出直接重定向到 gvim,基本上是为了搜索输出.比如说 findstr cmd 的结果.是否可以在不将其转储到文件并随后在 gvim 中加载该文件的情况下执行此操作?

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?

推荐答案

确定:

dir | gvim -

- 选项告诉 vim 打开 stdin

这适用于 Windows 和 Linux 版本.

This works for Windows and Linux versions.

这篇关于我可以将程序的输出重定向到 gvim 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆