vim redirect output to quickfix

后端 未结 4 2166
孤城傲影
孤城傲影 2021-02-13 10:20

Is it possible to redirect an output of a command to the quick fix window?

The command I am running is

:!java %:r

and was hoping the o

4条回答
  •  没有蜡笔的小新
    2021-02-13 10:45

    Try this:

    1. set makeprg=java
    2. make %:r

    It's a bit of hack, and of course assumes you aren't already using makeprg for your actual build script.

提交回复
热议问题