,gd alias for git-grepping a ruby function definition

This commit is contained in:
yan
2012-02-05 12:50:35 -08:00
committed by Yan Pritzker
parent aba8e8f1da
commit ba510e401c
2 changed files with 4 additions and 0 deletions

View File

@@ -18,3 +18,6 @@ vnoremap K :<C-U>execute GitGrep(GetVisual())<CR>
"git grep current word up to the next exclamation point using ,K
nnoremap ,K viwf!:<C-U>execute GitGrep(GetVisual())<CR>
"grep for 'def foo'
nnoremap <silent> ,gd :GitGrep 'def <cword>'<CR>