vimgrep
is there any way to vimgrep, limiting to >1 but not all types of files?
i\'m pretty used to doing either: :vimgrep /whatever/ **/* or :vimgrep /whatever/ **/*.txt but is there a way with vim globbing to do, say, 2 file types? i guess i w开发者_如何转开发ant somethin[详细]
2023-01-29 17:49 分类:问答My vimgrep search is not behaving as I would expect
I am performing the following vimgrep search (in vim(!)).... :vimgrep /^\\s*bool\\s\\+\\i\\+\\s*=\\s*\\(false\\)\\|\\(true\\);\\s*$/*[files....]*[详细]
2023-01-15 18:06 分类:问答Vim, vimgrep, and file caching
My entire source code base is < 20MB. I want it all loaded in memory in the background. So that when I do vimgrep **/*.cpp **/*.cxx **/*.hpp , it doesn\'t ahve to 开发者_开发技巧do file IO since vi[详细]
2022-12-22 15:45 分类:问答Is there a shorter key combination than :cn to go to the next item in the quickfix list?
I\'m reading through a large C++ code base in Vim. Within a single file, I can do /foo n n n Now, if I want to search through more than one file, I have to do:[详细]
2022-12-19 14:44 分类:问答How do I write a vim function that calls VimGrep?
I want to write a function myFunc such that: myFunc /function foo/ becomes :vimgrep /function foo/ **/*.cpp **/*.hpp[详细]
2022-12-18 18:37 分类:问答How to exclude file patterns in vimgrep?
In vim, I do search with vimgrep frequently. I have mapping like below: map <leader>s :execute \"noautocmd vimgre开发者_C百科p /\\\\<\" . expand(\"<cword>\") . \"\\\\>/gj **/*.*\" &[详细]
2022-12-13 19:18 分类:问答How to make vimgrep do word match search?
I have below statement in _vimrc file to map F3 to do vimgrep for word under current cursor. map <F3> :execute \"noautocmd vimgrep /\" . expand(\"<cword>\") . \"/gj **/*.\" .expand(\"%:e\[详细]
2022-12-13 13:28 分类:问答how to open multiple files in vim after vimgrep
I\'m using gvim开发者_如何学运维.Using vimgrep on current directory to find text across *.sql files. As it searches files, it just shows me file name at a time and in the end opens one file up.[详细]
2022-12-13 04:34 分类:问答