macvim - vim redirect output to quickfix -
is possible redirect output of command quick fix window?
the command running
:!java %:r
and hoping output go quickfix window
please note quickfix window specific output (e.g. of compiler or syntax checker tools) includes references (i.e. line , column numbers) current buffer. there's lot of infrastructure around this: 'makeprg'
, 'errorformat'
, etc., bundled compiler plugin.
though can redirect arbitrary output quickfix window, provides little benefit (and has downside of clobbering 'makeprg'
) on reading output of external program new scratch buffer, e.g. this:
:new|0read !java #:r
Comments
Post a Comment