dkprice / vim-easygrep

Fast and Easy Find and Replace Across Multiple Files
The Unlicense
325 stars 47 forks source link

:Grep command not work when g:EasyGrepCommand is seted to 1 #16

Closed tracyone closed 9 years ago

tracyone commented 9 years ago

let g:EasyGrepCommand=1

grepprg is default : "grep -n $* /dev/null"

2014_005 2014_006

dsimidzija commented 9 years ago

Confirmed, :Grep is no longer working when using grepprg, seems to be a problem with escaping, what I get on my system(s) is something like this:

grep! -n -R -s --include="*" \"data\" /var/www/html/hc /dev/null

If I change it to the following it works as expected:

grep! -n -R -s --include="*" "data" /var/www/html/hc /dev/null

This seems to be related to your last commit, when I change these two lines to just single-double-single quote without the backslash, I get normal results.

dkprice commented 9 years ago

Should be fixed now.