diff --git a/README.mkd b/README.mkd index 32a22bf..940c8a2 100644 --- a/README.mkd +++ b/README.mkd @@ -310,7 +310,6 @@ Here are some things you can check: * Your Vim supports signs (`:echo has('signs')` should give `1`). * Your file is being tracked by git and has unstaged, saved changes. * If you use the Fish shell, or another non-POSIX shell, add `set shell=/bin/bash` to your `~/.vimrc`. -* Make sure your grep produces colourless output, e.g. with `export GREP_OPTIONS='--color=auto'`. ### Shameless Plug diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index 6ca9f1c..8da3ba9 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -1,5 +1,5 @@ let s:grep_available = executable('grep') -let s:grep_command = ' | '.(g:gitgutter_escape_grep ? '\grep' : 'grep').' -e '.gitgutter#utility#shellescape('^@@ ') +let s:grep_command = ' | '.(g:gitgutter_escape_grep ? '\grep' : 'grep').' --color=never -e '.gitgutter#utility#shellescape('^@@ ') let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'