Skip to content

Instantly share code, notes, and snippets.

@casssoft
casssoft / grep-with-git.vim
Last active August 13, 2018 23:47
vim-grep-with-git
" This is the grep command I've always wanted.
" This plugin opens the results of 'grep -r' in a bottom window
" and uses 'git grep' when in a git repo and regular grep otherwise.
" <C-x><C-x> runs grep for the word under the cursor
" also this:
"map <C-j> :cn<CR>
"map <C-k> :cp<CR>
"map <leader>c :cclose<CR>