Merge branch 'master' into feature/ripgrep

This commit is contained in:
Steven Barragán
2017-02-22 17:15:59 -08:00
committed by GitHub
4 changed files with 9 additions and 6 deletions

View File

@@ -10,11 +10,11 @@ function! GetVisual()
return selection
endfunction
"grep the current word using K (mnemonic Kurrent)
nnoremap <silent> K :Rg <cword><CR>
"grep the current word using ,k (mnemonic Kurrent)
nnoremap <silent> ,k :Rg <cword><CR>
"grep visual selection
vnoremap K :<C-U>execute "Rg " . GetVisual()<CR>
vnoremap ,k :<C-U>execute "Rg " . GetVisual()<CR>
"grep current word up to the next exclamation point using ,K
nnoremap ,K viwf!:<C-U>execute "Rg " . GetVisual()<CR>
@@ -27,4 +27,4 @@ nnoremap <silent> ,gd :Rg 'def <cword>'<CR>
nnoremap ,gg :Rg ""<left>
"Grep for usages of the current file
nnoremap ,gcf :exec "Rg " . expand("%:t:r")<CR>
nnoremap ,gcf :exec "Rg " . expand("%:t:r")<CR>