I learned <C-r><C-w> from this .vimrc, which pastes the current word into vim’s command line (from nnoremap <C-\> :silent Ggrep -w "<C-R><C-W>"<CR>:copen<CR>). That’s a great shortcut.
I use the Ack plugin, and manually specify paths to make search for occurrences faster in a large source tree. Git grep seems like a decent alternative though, particularly if you have many files in the working directory tree that are not tracked in git.
I learned
<C-r><C-w>from this .vimrc, which pastes the current word into vim’s command line (fromnnoremap <C-\> :silent Ggrep -w "<C-R><C-W>"<CR>:copen<CR>). That’s a great shortcut.I use the Ack plugin, and manually specify paths to make search for occurrences faster in a large source tree. Git grep seems like a decent alternative though, particularly if you have many files in the working directory tree that are not tracked in git.