From a362bc58f1fbbfbbbef749851006e46155979c7d Mon Sep 17 00:00:00 2001 From: Shea Parkes Date: Thu, 8 Mar 2018 21:48:46 -0500 Subject: [PATCH] Update GGrep example to work at project level. (#590) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce683dd..315b14d 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,9 @@ You can use autoload functions to define your own commands. " Command for git grep " - fzf#vim#grep(command, with_column, [options], [fullscreen]) command! -bang -nargs=* GGrep - \ call fzf#vim#grep('git grep --line-number '.shellescape(), 0, 0) + \ call fzf#vim#grep( + \ 'git grep --line-number '.shellescape(), 0, + \ { 'dir': systemlist('git rev-parse --show-toplevel')[0] }, 0) " Override Colors command. You can safely do this in your .vimrc as fzf.vim " will not override existing commands.