Update README.md

Simplify convoluted way of exiting vim using handy grep trick.
This commit is contained in:
Darren Garvey 2020-01-10 14:42:29 +00:00 committed by GitHub
parent 58e647a30c
commit d8eedcfe3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ For real vim (and hacking) tips, follow [hakluke](https://twitter.com/hakluke) a
Credit: @tomnomnom
```vim
:!ps axuw | grep vim | grep -v grep | awk '{print $2}' | xargs kill -9
:!ps axuw | grep vi[m] | awk '{print $2}' | xargs kill -9
```
### Video tutorial:
[![tomnomnom](http://img.youtube.com/vi/xteTjU8GNMc/0.jpg)](http://www.youtube.com/watch?v=xteTjU8GNMc "tomnomnom")