I'm also used to doing:
:vimgrep /whatever/ **/*
or
:vimgrep /whatever/ **/*.txt
but is there a way with vim globbing to do, say, 2 types of files? I think I want something like this:
:vimgrep /whatever/ \*\*/.(txt|vb)
:vimgrep /whatever/ *.{txt,vb}
I think what you are looking for.
try it
:vimgrep /whatever/ *.txt *.vb
vimgrep, () perl- find + grep + xargs. vim :
:Searchfile txt,vb whatever
, EasyGrep. , , ( ), , .
For example: when you open test.cpp, files matching any of * .cpp * .hpp * .cxx * .hxx * .cc * .c * .h will be found at the start of the search. You can also define your own relationships or create your own order on demand.
Source: https://habr.com/ru/post/1779629/More articles:Language interpreted from source code and bytecode on the Internet - compiler-constructionJavascript factory область видимости шаблона - javascriptContentPage Control (mv) → Access MasterPage - c #Good Authentication for Rails 3 - ruby | fooobar.comStack memory allocation - c ++Filetracker: error FTK1011 - .netSize limit for javascript [node]. NodeValue? - javascriptBinTree parenthesis representation for BinTree - javadjango-admin: "super () argument 1 must be a type, not None" when overriding the save method - pythonПроблема с абсолютно позиционированным div, вложенным в другой абсолютно позиционированный div - cssAll Articles