jremmen / vim-ripgrep

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

macOS 10.13 or MacVim related issue #10

Open pirminis opened 6 years ago

pirminis commented 6 years ago

On macOS 10.13 and MacVim 8.0.1155 (137) vim-ripgrep has changed behaviour.

The old correct way to search:

:Rg "search_term"

results are found and (optionally) highlighted.

The current situation:

:Rg "search_term"

MacVim hangs up. So I use this, and it works:

:Rg "search_term" .

results are found, however, the highlighting pattern is not "search_term" anymore, but "search_term .", hence wrong highlighting is used.

can you help me find out why has vim-ripgrep behaviour changed after updating from macOS 10.12 to 10.13? or is it MacVim's problem? reverting MacVim doesn't do the trick, so that's that.

command line vim (8.0) does not have this issue.

relevant .vimrc rg configuration:

let g:rg_binary = "/usr/local/bin/rg"
let g:rg_highlight = 1
let g:rg_format = "%f:%l:%c:%m"
let g:rg_command = g:rg_binary . " --vimgrep --follow -i -j1 -e"
let g:rg_derive_root = 1

oh, btw, :RgRoot shows correct directory.

@jremmen

jremmen commented 6 years ago

@pirminis Did you find a solution to the problem?