Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何在 Vim 中搜索所有目录:
pe 在 c:\ 和 d:\ 的所有 .txt 文件中搜索“search-item”(包括子目录)
谁能帮我?
您可以像往常一样使用 grep
:grep -R 'search-item' path1 path2
有关更多信息,请参阅:
:h grep
以下对我有用
:vimgrep /<search>/ {c:,d:}/**/*.txt