PracticalVim Tip109 - yszheda/wiki GitHub Wiki
- 'grepprg' setting specifies what to run in the shell when Vim's `:grep` command is executed.
- 'grepformat' setting tells Vim how to parse the output returned by the `:grep` command.
- Default settings on Unix systems:
* `%f` matches the filename * `%l` matches the line number * `%m` matches the text on that line
- `%c` matches the column number
- grep uses POSIX regular expressions, whereas ack uses Perl regular expressions.
- ack.vim and fugitive.vim create custom commands rather than overriding the :grep command, they can all coexist without conflict.