Closed n3wjack closed 3 years ago
I don't know if it's what's happening, but I've found that the terminal in n/vim is difficult to get out of because :q
should quit the buffer. Of course if you're looking to completely leave n/vim then :qa
from anywhere in Normal Mode should also close the PowerShell terminal.
That SO answer didn't work for me, but it did point me to the help where it states that CTRL-W can be used to enter command mode, so you're able to enter :quit! to quit the terminal session. CTRL-W can also be used in combination with the movement keys jklm to jump out of the terminal window, as alt-tab doesn't work to jump between windows.
I often close my PS script using :q, but then the shell remains, and I have to close gvim manually to get rid of it. Even worse, if I'm using vim from the command line, I can't exit it (typical vim problem I know) because there seems to be no way to close the shell (exit doesn't work).
So it would be handy if in this case, the shell would automatically close.
Unless there's some way to close the shell that I don't know about.