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

Ag opens the first search result by default #121

Closed
danihodovic opened this issue Nov 4, 2015 · 4 comments
Closed

Ag opens the first search result by default #121

danihodovic opened this issue Nov 4, 2015 · 4 comments

Comments

@danihodovic
Copy link

Hi,

As soon as I enter the command :Ag -Q <string> and hit enter ag.vim seems to open the first result in a tab by default. How can I disable this behaviour?

@danihodovic
Copy link
Author

So, if anyone else wants the behavior of not opening the first search result you can use :Ag! instead of :Ag

@jamesmartin
Copy link

@danihodovic thanks, that's really helpful. ⚡

@danihodovic
Copy link
Author

@jamesmartin If you're actively using ag in vim you might also want to check out https://github.com/junegunn/fzf.vim and the :Ag that's provided there.

@losingkeys
Copy link
Collaborator

Closed in favor of #119

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

3 participants