Commit Diff


commit - 74b4938beca7190079f9edf29e00691407ae8fa8
commit + 54550e6b0c5d12a63c77e2ba4529e5490086fb44
blob - c48912a3660d68030caf5f4baeb58c76380f825b
blob + 2b88bb076574c0c3ca5314f5f978fbb167356ea9
--- .vimrc
+++ .vimrc
@@ -19,6 +19,15 @@ set incsearch
 
 nnoremap <Leader>e :e <C-R>=expand('%:p:h') . '/'<CR>
 
+nnoremap <Leader>g :execute
+          \ "grep! -nIR --exclude-dir=.git
+                       \ --exclude=*.orig
+                       \ --exclude=.*.swp
+                       \ --exclude=*.rej
+                       \ --exclude=*~ "
+                       \ . shellescape("\\<" . expand("<cword>") . "\\>")
+                       \ . " ."<cr>:copen<cr><cr>
+
 set backspace=indent,eol,start
 
 autocmd FileType python compiler pylint