Can I redirect output of a program to gvim?

前端 未结 4 1954
耶瑟儿~
耶瑟儿~ 2020-12-24 05:12

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 th

4条回答
  •  难免孤独
    2020-12-24 06:00

    If you're already in Vim you can use the r command to read like this:

    :r !
    

    E.g.

    :r !dir
    

提交回复
热议问题