0

I'm trying to implement tail -f buffer via job_start. It works well unless I switch to other buffer (:bn). When I return to tail-buffer, it's empty.

let job = job_start(['tail', '-f', 'some_log_file'], {
    \ 'out_io': 'buffer',
    \ 'out_buf': buf_number
  \ })

The tail -f process is still running, but its output is not redirected to buffer anymore.

What am I doing wrong, and how can it be fixed?

1
  • Could you please explain, why my code looks wrong? And why should I use buffer name instead of buffer number? And how is this related to my question? – Igor Semenov Nov 2 '20 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.