From 15dc21aca51a094d5b8b6a0f1a9a0d5f8a7ca5c6 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 1 Apr 2013 14:03:36 -0400 Subject: [PATCH] Check for grep Fixes #72 --- README.mkd | 1 + plugin/gitgutter.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.mkd b/README.mkd index 5dbfb05..fd1164b 100644 --- a/README.mkd +++ b/README.mkd @@ -218,6 +218,7 @@ Here are some things you can check: * Your git config is compatible with the version of git which your Vim is calling (`:echo system('git --version')`). * Your Vim supports signs (`:echo has('signs')` should give `1`). * Your file is being tracked by git and has unstaged changes. +* `grep` is on your path and available to Vim (`:echo executable('grep')` should return 1) ### Alternatives diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 07d8126..ab62994 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -1,4 +1,4 @@ -if exists('g:loaded_gitgutter') || !executable('git') || !has('signs') || &cp +if exists('g:loaded_gitgutter') || !executable('git') || !executable('grep') || !has('signs') || &cp finish endif let g:loaded_gitgutter = 1