I am new to vim, and I learn that you can interact with the terminal two ways while in vim. The first is to type: ! . The second is :term, when you have a terminal side by side with your source code. As soon as I press :term, my cursor is in the terminal. How do I switch back to the my source code and vice versa? The answer over here does not really help. I tried the key combinations C-W, and then :bn but it only exits terminal, then back to terminal again.
(How do I run a terminal inside of Vim?)
Advertisement
Answer
As :help :terminal
says, you can always exit to normal mode using <Ctrl-><Ctrl-N>
(:help CTRL-_CTRL-N
). Use i
to return to terminal interaction.