vim redirect output to quickfix

后端 未结 4 1745
借酒劲吻你
借酒劲吻你 2021-02-13 10:30

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:55

    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.

提交回复
热议问题