aboutsummaryrefslogtreecommitdiffstats
path: root/_vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to '_vim/vimrc')
-rw-r--r--_vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index cef50c2..a03d3a6 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -300,6 +300,9 @@ inoremap <F1> <Esc>
vnoremap <leader>y "+y
noremap <leader>p "+p
+" Grep the word under cursor
+nnoremap <leader>* :grep! "\b<C-r><C-w>\b"<cr>:cw<cr>
+
" Use the Silver Searcher
if executable("ag")
set grepprg=ag\ --nogroup\ --nocolor