Revert "Migrate from the silver searcher to ripgrep"

This commit is contained in:
Yan Pritzker
2017-05-30 16:40:31 -05:00
committed by GitHub
parent a8f11c97c6
commit e5a1358508
8 changed files with 17 additions and 27 deletions

View File

@@ -11,20 +11,20 @@ function! GetVisual()
endfunction
"grep the current word using ,k (mnemonic Kurrent)
nnoremap <silent> ,k :Rg <cword><CR>
nnoremap <silent> ,k :Ag <cword><CR>
"grep visual selection
vnoremap ,k :<C-U>execute "Rg " . GetVisual()<CR>
vnoremap ,k :<C-U>execute "Ag " . GetVisual()<CR>
"grep current word up to the next exclamation point using ,K
nnoremap ,K viwf!:<C-U>execute "Rg " . GetVisual()<CR>
nnoremap ,K viwf!:<C-U>execute "Ag " . GetVisual()<CR>
"grep for 'def foo'
nnoremap <silent> ,gd :Rg 'def <cword>'<CR>
nnoremap <silent> ,gd :Ag 'def <cword>'<CR>
",gg = Grep! - using Rg RipGrep
",gg = Grep! - using Ag the silver searcher
" open up a grep line, with a quote started for the search
nnoremap ,gg :Rg ""<left>
nnoremap ,gg :Ag ""<left>
"Grep for usages of the current file
nnoremap ,gcf :exec "Rg " . expand("%:t:r")<CR>
nnoremap ,gcf :exec "Ag " . expand("%:t:r")<CR>