grepis a built-in command of Vim. By default, it will use our system’sgrepcommand. We can overwrite it to use The Silver Searcher’sagcommand instead by putting this in our~/.vimrc
Source: Faster Grepping in Vim
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.