Faster Grepping in Vim
Hat tip to Thoughtbot’s article, Faster Grepping in Vim.
Hat tip to Thoughtbot’s article, Faster Grepping in Vim.
This searches for the text under the cursor and shows the results in a “quickfix” window.
It works well with git grep
if you have fugitive.vim
installed.
From our dotfiles:
nnoremap K :Ggrep "\b<C-R><C-W>\b"<CR>:cw<CR>
Thanks to Nathan Smith from Chef for showing it to us!
:wqa