How to search across a directory of files in vim?

You can simply use the :grep command: or for a more complete integration of search tools, use the grep.vim extension.

Simply type :help grep to get a nice documentation of what is available out of the box in Vim.
Using :grep foo *.?pp should do what you want.
This will open the QuickFix list, just like the one you get using :make, enabling to jump to the found occurrences.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)