Use plain grep instead of extended grep.

See #410.
This commit is contained in:
Andy Stewart
2017-04-03 13:23:50 +01:00
parent 1c034be0d3
commit 092369c19c
3 changed files with 5 additions and 5 deletions

View File

@@ -338,11 +338,11 @@ See above for configuring maps for hunk-jumping and staging/undoing.
#### Use a custom `grep` command
If you use an alternative to grep, or your grep does not support the `color` flag, you can tell vim-gitgutter to use it here. It only needs to support extended POSIX regex.
If you use an alternative to grep, you can tell vim-gitgutter to use it here.
```viml
" Default:
let g:gitgutter_grep_command = 'grep --color=never -e'
let g:gitgutter_grep_command = 'grep --color=never'
```
#### To turn off vim-gitgutter by default
@@ -526,7 +526,7 @@ Here are some things you can check:
* Your git config is compatible with the version of git returned by the command above.
* Your Vim supports signs (`:echo has('signs')` should give `1`).
* Your file is being tracked by git and has unstaged changes.
* If your grep does not support the `color` flag, add `let g:gitgutter_grep_command = 'grep -e'` to your `~/.vimrc`.
* If your grep does not support the `color` flag, add `let g:gitgutter_grep_command = 'grep'` to your `~/.vimrc`.
### Shameless Plug