-
Notifications
You must be signed in to change notification settings - Fork 131
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
Create option for setting default "open style" with Ag or Ag! #119
Comments
@typeoneerror Wow, I was looking all over the place for this option. Why isn't this documented? Thank you! |
A setting for this behavior would be really great instead of having to remember to use the non-default command each time. |
+1 |
`let g:ag_default_open_style = 'noreplace'` makes `Ag!`s behavior the default. Fixes rking#119
`let g:ag_default_open_style = 'noreplace'` makes `Ag!`s behavior the default. Fixes rking#119
By default Ag.vim open the first result. To avoid you can add a bang. Their is a PR to make it default but it's not merge : rking/ag.vim#119
However, the below snippets did make
|
:Ag!
is handy if you don't want to open the first result in the search. It'd be great if we could set an option in the settings for ag.vim to makeAg
perform the search in this manner. With this option, perhapsAg!
would just be the opposite of whatever you've defined your default to be.The text was updated successfully, but these errors were encountered: