From b39e7f06979065397565c4439091f06bfc06273e Mon Sep 17 00:00:00 2001 From: Kim Jahn Date: Wed, 18 Nov 2020 17:22:50 +0100 Subject: [PATCH] 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` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab4e1de..ad805e6 100644 --- a/README.md +++ b/README.md @@ -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")