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:
But even then, I’d take that to a quickfix list and use :cfdo
:
So it turns out that all I really need is simple vimgrep
:
:vimgrep /your_pattern/ app/**/*.rb
:copen
Published on 08 Jul 2025
all tags
100daysofcode activerecord android annoyances api apt arch array artix atom az3w backend bash blog browser bug callback career ci-cd cli cloud code coding config configuration cp crud cryptography css csv database db demo design devops django docker email erp feelsgood filter fugitive gif gist git gmail gnome gnome pomodoro grep hebrew http ide isbn-fetcher iso javascript job search js kanban kindle koans learning linkedin linux logger manjaro map markdown microservices mobi mtp neovim nodejs nvchad packages panda pastbin patch portfolio post postgres pytest python rails reduce refactoring reflections rest routes rspec ruby salesforce script scripting security sed shell sql string_replacement study tasks tdd terminal testing tmux ttd version_control vim vim sort walkthrough webdev workflow zsh