When comparing vimgrep vs Nirw Search, 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 Nirw Search is ranked 11th. The most important reason people chose vimgrep is:
Using the \v string at the start of the pattern enables *magic* (extended regular expressions)
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 Progress Output
By default, display the file being searched.
Pro Optional multi-line support
Pro Color highlight matches
Pro Tab completion
The command-line for refining a search supports auto-completing based on the current output.
Pro Can refine the initial search
Initial search can be refined by typing in other terms (optionally exclude from results too).
Pro Optional regex or literal text searches
While regex is default, sometimes escaping is inconvenient, in these cases you can perform literal searches.
Cons
Con Slower than external grep solutions
External grep programs can be much faster