mileszs / ack.vim

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

g:ack_default_options only applied if g:ackprg #139

Closed Konfekt closed 9 years ago

Konfekt commented 10 years ago

In documentation, note that g:ack_default_options only applied if g:ackprg unset!

Thanks to

if !exists("g:ackprg")
  if executable('ack')
    let g:ackprg = "ack"
  elseif executable('ack-grep')
    let g:ackprg = "ack-grep"
  else
    finish
  endif
  let g:ackprg .= g:ack_default_options
endif

the g:ack_default_options are only applied if g:ackprg is unset.

Either

ches commented 9 years ago

152 will resolve this, if that pull request doesn't get rebased soon then I'll address it myself. So I'm going to close this issue in favor of that issue/PR, but I'd like to understand use cases for having both g:ackprg and g:ack_default_options exist—if you could please comment on #152 about how you use them I'd appreciate it!