I am currently trying to write myself a function the will let me show or hide (toggle) the
:terminal window. The only way to hide it, as far as I currently know, is to just navigate to that window and close it with
:q or whatever. I have a problem though:
- I have the buffer number
Nopened in some split, but I don't know how to navigate to the window that has the buffer
switchbuf might help, but I found out that it works only for
In the picture above I have the cursor in buffer number 1. Which command lets me move to the terminal at the bottom (buffer number 15 in my case) instead of opening the terminal in buffer 1 or creating it in new split? The buffer numbers are of course arbitrary.
Thank you in advance.