Open typeoneerror opened 9 years ago
@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 And that behaviour should also be replciated to AgFile, AgBuffer, etc
let g:ag_default_open_style = 'noreplace'
did not work for me.
However, the below snippets did make Ag!
the default behaviour.
cnoreabbrev Ag Ag!
nnoremap <Leader>a :Ag!<Space>
: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.