You are currently viewing Vimgrep FTW

Vimgrep FTW

Have I mentioned that I love Linux and the awesome little tools it comes with? Granted vimgrep is not a “Linux” tool itself but rather a function used within vim to do a recursive search throughout a folder structure.


Ensure you are at the root of your project in Vim. Then type in “:pwd” in vim to see if what dir you are in and then, type in “:cd /path/to/project”. Lastly, type “:vimgrep pattern */.php”. Voilà! Pattern found.


I am a g33k, Linux blogger, developer, student and Tech Writer for My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.