vim redirect output to quickfix

后端 未结 4 2053
孤城傲影
孤城傲影 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:31

    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
    

提交回复
热议问题