Sometimes all you need is vimgrep

I wanted to look for a string within the app/ subdirectory, and after looking around, I concluded that all I needed was vimgrep.

:vimgrep /your_pattern/ app/**/*.rb
:copen

Normally I’d use Telescope Live Grep, which searches across the whole project:

Telegraph Live Grep

But even then, I’d take that to a quickfix list and use :cfdo:

Quickfix Replace

So it turns out that all I really need is simple vimgrep:

:vimgrep /your_pattern/ app/**/*.rb
:copen


all tags