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

How do I search with regular expressions? #71

Closed
wejrowski opened this issue Nov 20, 2014 · 1 comment
Closed

How do I search with regular expressions? #71

wejrowski opened this issue Nov 20, 2014 · 1 comment

Comments

@wejrowski
Copy link

Is there a way to use regex with the ag command? I've been searching and cannot find an answer!

@losingkeys
Copy link
Collaborator

By default the :Ag commands this plugin provides will pass your search onto ag, which will treat it like a regular expression, unless you change g:agprg to have the --literal option. Have a look at the docs here: https://github.com/rking/ag.vim/blob/master/doc/ag.txt if you have more questions about how this plugin interacts with ag, or the ag documentation here: https://github.com/ggreer/the_silver_searcher/blob/master/doc/ag.1.md if you have questions about working with ag itself. This plugin is a fairly thin wrapper over ag that adds vim integration to make working with searches from within vim a bit nicer.

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