how-to-exit-vim icon indicating copy to clipboard operation
how-to-exit-vim copied to clipboard

The simple way does not always work

Open birchb1024 opened this issue 5 years ago • 2 comments

$ 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 send specified signal -q, --queue use sigqueue(2) rather than kill(2) -p, --pid print pids without signaling them -l, --list [=] list signal names, or convert one to a name -L, --table list signal names and numbers

-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

birchb1024 avatar Jan 08 '20 08:01 birchb1024

Can't believe can exit vim so simple

wenerme avatar Jan 08 '20 08:01 wenerme

@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

mookie- avatar Nov 18 '20 16:11 mookie-