💾 Archived View for g.codelearn.me › 2018-08-31-vim-easygrep.gmi captured on 2023-07-10 at 13:34:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

vim-easygrep

I'm currently trying to use Vim instead of Emacs and one of important workflow I've used to is grepping things in a project.

There are few options:

EasyGrep

. The tool I chose.

My config looks like this:

let g:EasyGrepCommand="grep"
let g:EasyGrepRoot="repository"
let g:EasyGrepRecursive = 1
let g:EasyGrepFilesToExclude = "vendor,docker,node_modules"

By default EasyGrep use `vimgrep` which is not able to ignore folders as far as I got.

So setting `grep` as `EasyGrepCommand` makes `EasyGrepFilesToExclude` being considered.

Setting `EasyGrepRoot` to `repository` turns EasyGrep to "search from project root" mode.

Now I can just place my cursor to a word I want to search for, press `<Leader>vv` and that's it.

Works like a charm.