diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -108,8 +108,8 @@ nnoremap k :cal " mark line nmap l Vk -" use Ag for a recursive * -nnoremap g* :Ag +" use Grep for a recursive * +nnoremap g* :Grep " K: doc, gKK: doc current filename nnoremap gKK :call ViewDoc('doc', expand('%:p')) @@ -157,7 +157,9 @@ command! -nargs=* -complete=file Tig command! TigBlame call tig#TigBlame() command! TigLog call tig#Tig('log', '-p', '--', expand('%')) -command! -nargs=* -complete=file -bar Ag call vimrc#Ag() +command! -nargs=* -complete=file Grep call vimrc#Grep() +CAlias Ag Grep +CAlias grep Grep CAlias Q q CAlias Qa qa @@ -263,6 +265,7 @@ endif if executable('ag') let &grepprg = "ag --vimgrep" set grepformat^=%f:%l:%c:%m,%f + set errorformat+=%f endif if g:on_windows