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...
Knoll asked 14/12, 2009 at 4:49

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...
Eastbound asked 12/7, 2018 at 13:12

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...
Lammers asked 25/11, 2015 at 18:29

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 ...
Linearity asked 5/3, 2014 at 6:32

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...
Lithea asked 31/1, 2014 at 15:34

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
Destinee asked 11/4, 2013 at 12:43

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 ...
Bergama asked 24/10, 2011 at 18:52

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 ...
Mike asked 2/12, 2009 at 5:34

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...
Flatting asked 23/6, 2009 at 18:31
1

© 2022 - 2024 — McMap. All rights reserved.