Check for grep

Fixes #72
This commit is contained in:
Justin M. Keyes
2013-04-01 14:03:36 -04:00
parent 989ad9b0fb
commit 15dc21aca5
2 changed files with 2 additions and 1 deletions

View File

@@ -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 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 Vim supports signs (`:echo has('signs')` should give `1`).
* Your file is being tracked by git and has unstaged changes. * 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 ### Alternatives

View File

@@ -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 finish
endif endif
let g:loaded_gitgutter = 1 let g:loaded_gitgutter = 1