When I enter vim and open :terminal
I want to :wq
or :q
without first having to switch to the terminal window and typing exit
Any autocmds for this? Can't seem to find any.
Note:
- I have the terminal to launch in my .vimrc.
qa!
etc, doesn't work either, I'll get an error any time I try to quit; 'job running' meaning the terminal.
vim --clean "+term" "+qa!"
. It should exit immediately. If it doesn't, then there is a bug in Vim (my v0.9.57 exits immediately). But if it does work, then your vimrc is the culprit, which you can debug.autocmd vimleave * vim --clean "+term" "+qa!"
, I'll try it, your vim looks ancient, I'm on vim8 :).