vimgrep Questions
5
In vim, I do search with vimgrep frequently. I have mapping like below:
map <leader>s :execute "noautocmd vimgrep /\\<" . expand("<cword>") . "\\>/gj **/*.*" <Bar>
cw<C...
1
Solved
Why do they use the double asterisk?
I've read Vim's help on vimgrep, I've looked around on stack overflow and vimcasts and whilst I have found lots of people saying that this is how you search re...
1
Solved
In my vimrc I had a mapping to find all line with TODO in them and put them in the quickfix window:
nnoremap <leader>f :vimgrep /TODO/j % \| :cw<CR>
I now want to add the alternativ...
1
Solved
I'm using ag in Vim with good results for string/file search.
However, there seems to be not much documentation how patterns are constructed for ag.
I'm trying to use ag instead of vimgrep in an ...
3
Solved
I would like to search with vimgrep only within a visual selection of the current file and not the whole file. Is that possible and how? I couldn't find something for this case with Google or in vi...
2
Solved
I would like to grep all string patterns which are start with the:
student_
, then
any numbers of symbols(letters and digits)
and end with the
.tcl
2
Solved
I am new to vim, and still exploring some features of it. I have a problem with vimgrep. I can search for a pattern like this vimgrep /define/ ** so that it finds and opens next file that contains ...
2
Solved
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.
Is it possible to ...
3
Does anyone know syntax of Vimgrep to search with multiple file globs? I am trying to use this command to search in the current directory.
map <F3> :execute "vimgrep /" . expand("<cword&g...
1
© 2022 - 2024 — McMap. All rights reserved.