From e7bd221bc58a4437d9c0ab5f31193e68cd3e01db Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 3 Oct 2019 11:12:38 +0800 Subject: vim: Add * key map --- _vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '_vim/vimrc') diff --git a/_vim/vimrc b/_vim/vimrc index cef50c2..a03d3a6 100644 --- a/_vim/vimrc +++ b/_vim/vimrc @@ -300,6 +300,9 @@ inoremap vnoremap y "+y noremap p "+p +" Grep the word under cursor +nnoremap * :grep! "\b\b":cw + " Use the Silver Searcher if executable("ag") set grepprg=ag\ --nogroup\ --nocolor -- cgit v1.2.2