mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
13 lines
345 B
VimL
13 lines
345 B
VimL
" initialize g:grepper if it does not exist
|
|
if !exists('g:grepper')
|
|
let g:grepper = {}
|
|
endif
|
|
|
|
" set value of g:grepper['tools'] to the same list of tools used by FlyGrep
|
|
if !has_key(g:grepper, 'tools')
|
|
let g:grepper = {'tools': g:spacevim_search_tools}
|
|
endif
|
|
|
|
" invoke Grepper using visually selected pattern
|
|
xmap gp <plug>(GrepperOperator)
|