mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
Update GGrep example to work at project level. (#590)
This commit is contained in:
committed by
Junegunn Choi
parent
17d24ae31d
commit
a362bc58f1
@@ -176,7 +176,9 @@ You can use autoload functions to define your own commands.
|
|||||||
" Command for git grep
|
" Command for git grep
|
||||||
" - fzf#vim#grep(command, with_column, [options], [fullscreen])
|
" - fzf#vim#grep(command, with_column, [options], [fullscreen])
|
||||||
command! -bang -nargs=* GGrep
|
command! -bang -nargs=* GGrep
|
||||||
\ call fzf#vim#grep('git grep --line-number '.shellescape(<q-args>), 0, <bang>0)
|
\ call fzf#vim#grep(
|
||||||
|
\ 'git grep --line-number '.shellescape(<q-args>), 0,
|
||||||
|
\ { 'dir': systemlist('git rev-parse --show-toplevel')[0] }, <bang>0)
|
||||||
|
|
||||||
" Override Colors command. You can safely do this in your .vimrc as fzf.vim
|
" Override Colors command. You can safely do this in your .vimrc as fzf.vim
|
||||||
" will not override existing commands.
|
" will not override existing commands.
|
||||||
|
|||||||
Reference in New Issue
Block a user