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

defining g:ag.prg error #105

Open
ephemerr opened this issue Jun 8, 2018 · 5 comments
Open

defining g:ag.prg error #105

ephemerr opened this issue Jun 8, 2018 · 5 comments

Comments

@ephemerr
Copy link

ephemerr commented Jun 8, 2018

I am trying to add ignore list to plugin in vimrc:
let g:ag.prg="ag --vimgrep -p [myfile]

But get error on vim start:
E121: Undefined variable: g:ag

vim 8.1.22

when I run this command from : it works

@albfan
Copy link
Owner

albfan commented Jun 8, 2018

You can use :AgIgnore to ignore whatever you want

:AgIgnore po
:AgIgnore doc
:AgIgnore file

there is an abreviation agi avaliable too

https://github.com/albfan/ag.vim/blob/master/doc/ag.txt#L212

@ephemerr
Copy link
Author

ephemerr commented Jun 8, 2018 via email

@albfan
Copy link
Owner

albfan commented Jun 8, 2018

You're right. That's some quirks from a heavy refactor time ago.

To avoid bother user with that ag.vim should care about simple variables as:

let g:ag_prg = <whatever>

Meanwhile can you provide a PR on README?

@ephemerr
Copy link
Author

ephemerr commented Jun 8, 2018

I have tried to do as said in docs and determine all options but now search not working at all. Looks like some options missing from docs, and without them nothing works. Or it is possible I am doing something wrong.

Repository owner deleted a comment from amerlyq Jun 9, 2018
@albfan
Copy link
Owner

albfan commented Nov 2, 2018

Seems we lost that var since 3687b73.

Basically this will work again when #97 (comment) is implemented

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

2 participants