Grepping inside Vim

Today I learned a very cool trick. I can grep a pattern inside a given directory by running :grep pattern /path/to/dir . Vim will execute a grep command externally and put the results into a quickfix list. &#xA; The quickfix list is basically a dynamic buffer where Vim stores lists of values. In this case, all results returned by the external grep command end up in there, and you can navigate the…