Search code examples
searchvimgrepackfindstr

Search in all directories


I can't find out how to search in Vim in all directories with:

  • grep
  • ack
  • findstring
  • vimgrep

p.e. search "search-item" in all .txt files in c:\ and d:\ (including sub directories)

Can anyone help me?


Solution

  • Following works for me

    :vimgrep /<search>/ {c:,d:}/**/*.txt