Browse files

Make K useful: bind it to `git grep`

  • Loading branch information...
Benjamin Oakes
Benjamin Oakes committed Jun 16, 2014
1 parent d5d2968 commit 299554f378938ff124294c27a1f3cda17a124797
Showing with 4 additions and 0 deletions.
  1. +4 −0 home/.vimrc
@@ -63,6 +63,10 @@ let mapleader=","
" to directory of current file -
cnoremap %% <C-R>=expand('%:h').'/'<cr>
" Based on
" bind K to grep word under cursor
nnoremap K :Ggrep "\b<C-R><C-W>\b"<CR>:cw<CR>
set wildmode=list:longest "make cmdline tab completion similar to bash
set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches

0 comments on commit 299554f

Please sign in to comment.