mhinz / vim-grepper

:space_invader: Helps you win at grep.
MIT License
1.22k stars 58 forks source link

doc/grepper.txt: suggestion about setting global grepper options is misleading #236

Open jf opened 4 years ago

jf commented 4 years ago

in doc/grepper.txt, I see

If you want to set global grepper options in your vimrc, use either of the
following two lines first:
>
    let g:grepper = {}            " initialize g:grepper with empty dictionary
    runtime plugin/grepper.vim    " initialize g:grepper with default values
<

This reads like I just need to pick one of the 2 lines, and so I go with the second one, and try the following in my vimrc:

runtime plugin/grepper.vim
let g:grepper.tools = ['git', 'rg']

But this fails and I get a E121: Undefined variable: g:grepper message. It doesnt look like the let g:grepper = {} line is not optional?