vim redirect output to quickfix

后端 未结 4 1746
借酒劲吻你
借酒劲吻你 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:57

    I mapped leader + j + r to run my java code and display it in the quickfix window by doing

    map jr :set makeprg=java :make %:r:copen
    

提交回复
热议问题