Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jf opened this issue Oct 16, 2020 · 0 comments
Open

Comments

@jf
Copy link

jf commented Oct 16, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant