Search in all directories
Domanda
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?
Soluzione
Following works for me
:vimgrep /<search>/ {c:,d:}/**/*.txt
Altri suggerimenti
You can use grep as usually
:grep -R 'search-item' path1 path2
For more information see:
:h grep
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow