I often use the
:term command in my projects to create new directories or perform other work.
However, if I have multiple windows open, then executing
:term from one of them will also close that window, when I exit the shell.
How can I execute
:term from the current window and return back to current buffer on exit?