Skip to content

Instantly share code, notes, and snippets.

@ageldama
Created January 19, 2019 08:00
Show Gist options
  • Select an option

  • Save ageldama/13b87c35596b3dbc73cc9cfa8ace331b to your computer and use it in GitHub Desktop.

Select an option

Save ageldama/13b87c35596b3dbc73cc9cfa8ace331b to your computer and use it in GitHub Desktop.
diff --git a/vim/_vimrc b/vim/_vimrc
index c400d42..f6a2dfb 100644
--- a/vim/_vimrc
+++ b/vim/_vimrc
@@ -107,7 +107,7 @@ endif
set paste
-if executable('rg')
+if executable('rg') && 0
let g:ackprg = 'rg --vimgrep'
" Use ag over grep
@@ -125,7 +125,7 @@ elseif executable('ag')
endif
" bind K to grep word under cursor
-nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR>
+nnoremap <Leader>/ :grep! "\b<C-R><C-W>\b"<CR>:cw<CR>
" xclip '\y'
vnoremap <silent><Leader>y :'<,'>w !xclip<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment