diff --git a/README.mkd b/README.mkd index 6b66e82..228e4ce 100644 --- a/README.mkd +++ b/README.mkd @@ -342,7 +342,7 @@ 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' +let g:gitgutter_grep_command = 'grep' ``` #### 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'` to your `~/.vimrc`. +* If you have aliased or configured `grep` to use any flags, add `let g:gitgutter_grep_command = 'grep'` to your `~/.vimrc`. ### Shameless Plug diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index 9804264..a10e69f 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -4,7 +4,7 @@ if exists('g:gitgutter_grep_command') else let s:grep_available = executable('grep') if s:grep_available - let s:grep_command = 'grep --color=never' + let s:grep_command = 'grep' endif endif let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@' diff --git a/doc/gitgutter.txt b/doc/gitgutter.txt index 16387a6..0065d09 100644 --- a/doc/gitgutter.txt +++ b/doc/gitgutter.txt @@ -274,7 +274,7 @@ TO USE A CUSTOM GREP COMMAND To use a custom invocation for grep, use this: > - let g:gitgutter_grep_command = 'grep --color=never' + let g:gitgutter_grep_command = 'grep' < TO TURN OFF VIM-GITGUTTER BY DEFAULT