How to redirect stdout output to a new Vim tab?

前端 未结 3 857
灰色年华
灰色年华 2021-02-07 03:07

I\'m editing an XML file in Vim, and then I want to transform it a plain-text file with xsltproc, which by default outputs to a stdout (something like : !xsltproc TXTRULE.XSL %)

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 03:54

    You can use read like in the following:

    :read !ls
    

    Obviously you should change ls with your command. If you want to open a new tab prepend tabnew with a bar to the command like:

    :tabnew|read !ls
    

提交回复
热议问题