how-to-exit-vim
how-to-exit-vim copied to clipboard
The simple way does not always work
$ vim afilewithgrepinthename.txt
Gives: `
Usage: kill [options] <pid|name> [...]
Options:
-a, --all do not restrict the name-to-pid conversion to processes
with the same uid as the present process
-s, --signal
-h, --help display this help and exit -V, --version output version information and exit
For more details see kill(1).
shell returned 123
Press ENTER or type command to continue ` A real simple way which works better is this:
:kill -9 $PPID
Can't believe can exit vim so simple
@birchb1024 your real simple way is pretty good. I've proposed an improvement on the simple way which would also fix your problem. https://github.com/hakluke/how-to-exit-vim/pull/216