r/programming • • May 23 '17

Stack Overflow: Helping One Million Developers Exit Vim

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
9.2k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

3

u/towo May 24 '17

vim is suspended and can't react to the SIGTERM you sent with kill %1. You'd need to send a kill -CONT %1 after the SIGTERM so that it can be processed.

SIGKILL isn't parsed by the program itself, so it works regardless.