When comparing vimgrep vs The Platinum Searcher (pt), the Slant community recommends vimgrep for most people. In the question“What are the best open source tools for searching source code?” vimgrep is ranked 5th while The Platinum Searcher (pt) is ranked 10th. The most important reason people chose vimgrep is:
Using the \v string at the start of the pattern enables *magic* (extended regular expressions)
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Supports extented regular expressions
Using the \v string at the start of the pattern enables magic (extended regular expressions)
Pro Built in to Vim
You don't need to install any plugins to use vimgrep, it comes built in to vim.
Pro Works with Atom
Pro Fully configurable
Can define specific configuration in each directory using .ptconfig.toml
.
Pro Golang
Writing fully in Go.
Pro Very fast
3–5× faster than ack. Slightly faster than ag.
Cons
Con Slower than external grep solutions
External grep programs can be much faster