How do I dump output of an external command to a new buffer in Vim?

前端 未结 3 1315
醉梦人生
醉梦人生 2021-02-15 12:04

:enew lets me create a new buffer and :.!> lets me dump the output of an external command to that buffer. Can I combine the tw

3条回答
  •  庸人自扰
    2021-02-15 12:32

    '|' is used to chain commands together in vim. so

    :enew | .! 
    

    should do what you want

提交回复
热议问题