removing one pipe from "the simple way" to exit vim

You can use `grep` with square brackets to skip the extra pipe through `git -v`
This commit is contained in:
Kim Jahn 2020-11-18 17:22:50 +01:00 committed by GitHub
parent 1b9a16e6e8
commit b39e7f0697
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 [v]im | 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")