My problem is similar to, if not same as, this issues. But I can't follow what they're talking about.
The following steps are necessary to reproduce my problems:
:sp :term :wincmd w :wincmd o :ls
And you'll see that the terminal buffer has disappeared. Any idea why it happens and how to keep the terminal buffer present/alive in the buffer list even after it has been hidden?
Edit I know about
:set hidden. But I don't like how it hides buffers yet to be written to disks. I want to use
autocmd to modify the neovim terminal buffer so that it can't be hidden at all.