jremmen / vim-ripgrep

Use RipGrep in Vim and display results in a quickfix list
MIT License
541 stars 99 forks source link

vim-ripgrep is ignoring .gitignore by default but not in shell #20

Closed ar1xwe closed 6 years ago

ar1xwe commented 6 years ago

Hi. I've encounter a problem with vim-ripgrep.

It automatically ignore my '.gitignore' file.

Root: D:\MyFolder List: MyFolder.gitignore ''' *.zxc bar.* ''' MyFolder\foo.zxc '''Lorem Ipsum''' MyFolder\foo.xcv '''Lorem Ipsum''' MyFolder\bar.zxc '''Lorem Ipsum'''

Command: rg -g *.zxc -e "Lorem Ipsum" -> Bash output: 1:Lorem Ipsum -> Vim output: (with --vimgrep) bar.zxc|1 col 1| Lorem Ipsum foo.zxc|1 col 1| Lorem Ipsum

Any idea how to solve this problem?

I've did

jremmen commented 6 years ago

Hi. I unsuccessfully tried to reproduce the issue you described, using the same context. I altered the .gitignore file and observed the changes being respected in Vim.

ar1xwe commented 6 years ago

I've fix this issue finally. it's some problems with window's cmd. Thanks for reply