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?
in doc/grepper.txt, I see
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:
But this fails and I get a
E121: Undefined variable: g:grepper
message. It doesnt look like thelet g:grepper = {}
line is not optional?