I have a job that produces output continually. I want to write this output to a Vim buffer. I start it with:
let job = job_start(cmd, { 'out_io': 'buffer', 'out_name': 'joboutput' })
But I can't see the job's output as it's produced-- I only see the first line "Reading from channel output...". Only when I call:
call job_stop(job)
Will I see the rest of the output, which is all written to the buffer. So it appears that the job's output is buffered by the OS before I can see it, and stopping the job causes it to be flushed. Is there a way to have Vim continually update the output buffer, the way it would appear if I ran the same job (i.e. process) in a terminal?
cmd
to reproduce your problem.