mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Add optional (fallback) grepformat to g:ackformat #58

Closed ku1ik closed 10 years ago

ku1ik commented 11 years ago

grepformat can hold multiple values separated by commas. When parsing results Vim tries to match lines against each of formats specified.

I added additional format %f:%l:%m that doesn't include column. This allows using git-grep (that don't have an option to output column number) with this plugin just by setting g:ackprg like this:

let g:ackprg = 'git grep -H --line-number --no-color'
ku1ik commented 11 years ago

Any chance for merging this?

tuzz commented 11 years ago

+1

DDAZZA commented 11 years ago

+1