greplace.vim icon indicating copy to clipboard operation
greplace.vim copied to clipboard

Ignore certain files and directories

Open padi opened this issue 7 years ago • 2 comments
trafficstars

Tried adding specific files using -- <pathspec> options

set grepprg=git\ grep
let g:grep_cmd_opts = "--line-number -- './*' ':!**/node_modules/**' ':!**/gems/**'"

But it doesn't seem to work.

padi avatar Dec 07 '17 07:12 padi

We had a similar issue at https://github.com/skwp/greplace.vim/issues/1, anyone has suggestion for this? Otherwise, it may take much longer when searching in log and dump files.

tamvm avatar Apr 05 '18 03:04 tamvm

I think it works if you do Gsearch searchTerm ./ If you do Gsearch searchTerm it uses * for files which ignores the ignores.

thijsnado avatar Jul 23 '20 20:07 thijsnado