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. – 3N4N Oct 13 '22 at 07:37autocmd vimleave * vim --clean "+term" "+qa!", I'll try it, your vim looks ancient, I'm on vim8 :). – Nickotine Oct 13 '22 at 22:06autocmd vimEnter * terminalautocmd vimLeave * vim --clean "+term" "+:qa!didn't work – Nickotine Oct 14 '22 at 02:35vim --clean "+term" "+qa!"from your OS terminal emulator, e.g., gnome-terminal, xterm, etc. – 3N4N Oct 14 '22 at 04:26:qa!I tried doingvim --clean term+:qa,+:wqa,+:wqa!` and it ends up entering vim. Thank you I've had this problem for ages and I'm satisfied.