Feedback on combining :vimgrep with `ack -f`

  1. Combining :vimgrep with `ack -f`: vimcasts.org/blog/2013/03/c… This lets you use :vimgrep to search the set of files that ack would inspect.
  2. @vimcasts combining the no-hassle whitelisting of ack with the raw speed of vimgrep
  3. @tpope ha! I don’t claim that vimgrep is fast, I’m just lazy and like working with the same regex for file-wise and project-wide search.
  4. @nelstrom really I'm just shocked at anyone actually wanting ack's file selection process. Burns me every time I use it.
  5. @tpope do you have a problem with the syntax being confusing, or does it return incorrect results?
  6. @nelstrom It silently ignores file names like .erb, .haml, .builder, .feature, Gemfile, and anything else Rubyists have invented this week.
  7. @nelstrom yes you can customize it. Rubyists invent far too many naming conventions to make that tenable.
  8. @tpope @nelstrom idk, I just have an absurdly long line of filename extensions which can mark a file as ruby, otherwise, no big deal.
  9. @gilesgoatboy @nelstrom silver searcher and git grep both get this right, plus faster to boot. I don't get why anyone would bother with ack.
  10. @gilesgoatboy @tpope @nelstrom +1 on silver searcher. no more file extension whitelisting AND it's faster.
  11. @tpope perhaps a better partner for vimgrep would be `git ls-tree` Trying to think up a good alias for: `git ls-tree --name-only -r HEAD`
  12. @nelstrom it's great for this, I recently started using it for ctags. just be aware that by default it skips untracked files

Did you find this story interesting? or comment as 1 already did!

Liked!

Vimcasts

Regular free screencasts about Vim, the text editor. Brought to you by Drew Neil (@nelstrom).

Total views
172

Storify

@Storify