I'm opening a terminal buffer for my XML validation with the following command:
let term_buff_no = term_start(validate_cmd, {'term_rows': 10})
However, when running the same command again, a new terminal buffer is opened.
- How can i re-use the same buffer for displaying another round of results?
- When the job's exit status is OK, can i detect that and close the terminal buffer?
exit_cb
and/orterm_finish
options. For (1) you would need to program something like "find the terminal interm_list()
with the same command"