When I'm in the terminal and I press <C-w>s
the screen is split vertically and the terminal buffer is shown twice. Then I have to do :terminal
if I want a separate terminal instance.
Typing something in one window is in real time shown in the other. This is a feature if I was editing a file but is an inconvenience when working with terminal buffers.
How do I conditionally run
<C-w>S:terminal
depending on whether the current window is a terminal buffer?