Skip to content

Conversation

@jswartwood
Copy link

By setting g:ackargs, one can now add additional defaults to :Ack within Vim. I use ack on command line for many things, but commonly have a default set of additional ack args for projects. For example, I've added this to my .vimrc.

" Better than grep
let g:ackargs="--ignore-dir=build\\ --ignore-dir=min"

I'm a little green to vim scripting, so it is entirely possible that there is a much better way to do this.

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

Successfully merging this pull request may close these issues.

1 participant