From 115a25de795794e881100569e5862df32d20869c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 19 Sep 2014 00:40:27 +0900 Subject: [PATCH] Suppress error messages from `which` command --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index c41f1b9..f371f62 100644 --- a/plug.vim +++ b/plug.vim @@ -725,7 +725,7 @@ function! s:update_parallel(pull, todo, threads) def killall pid pids = [pid] - unless `which pgrep`.empty? + unless `which pgrep 2> /dev/null`.empty? children = pids until children.empty? children = children.map { |pid|