On 11/08/2017 18:21, Christian Brabandt wrote:
>
> On Fr, 11 Aug 2017, Lifepillar wrote:
>
>> Is there any way yet to recognize that a window's buffer is a
>> terminal buffer (say, to define a custom status line)?
>>
>> To be clear, I am talking about the terminal feature currently under
>> development in Vim.
>
> You can check the buftype option, which should be terminal as long as
> the job is still running or use something like
>
> index(term_list(), bufnr('')) > -1
Thanks, both work even after the job is finished.
Wouldn't it make sense to also set filetype to vim_terminal or something
like that, to take advantage of ftdetect?
Life.