Re: search something from vim in certain directory

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 04:26:50PM +0300, Pavel Shevaev wrote: > >:vimgrep pattern directory/**/*.h > > Just an aside question - is there anything alike for find & replace in > files? Something like :%s/../../g could be very helpful... > Especially it would be great to see replaced stuff in quick

Re: search something from vim in certain directory

2007-02-23 Thread Pavel Shevaev
:vimgrep pattern directory/**/*.h Just an aside question - is there anything alike for find & replace in files? Something like :%s/../../g could be very helpful... Especially it would be great to see replaced stuff in quickfix window. -- Best regards, Pavel

Re: search something from vim in certain directory

2007-02-22 Thread A.J.Mechelynck
Peng Yu wrote: On 2/22/07, Jean-Rene David <[EMAIL PROTECTED]> wrote: * Peng Yu [2007.02.22 11:15]: > I have a C++ project in some dir say "project" > or its subdir. Although I can use find and grep > outside vim to search for any word in "project". > But this is not very convenient. Well you c

Re: search something from vim in certain directory

2007-02-22 Thread Jean-Rene David
* Peng Yu [2007.02.22 16:15]: > I read the help. But I still don't see how to search in all the *.h > and *.cc in a certain directory. Do I have to rely on the external > command "find"? It would help if you told us what version of vim you use and what you tried. If you have vim 7, you can use:

Re: search something from vim in certain directory

2007-02-22 Thread Peng Yu
On 2/22/07, Jean-Rene David <[EMAIL PROTECTED]> wrote: * Peng Yu [2007.02.22 11:15]: > I have a C++ project in some dir say "project" > or its subdir. Although I can use find and grep > outside vim to search for any word in "project". > But this is not very convenient. Well you can use an extern

Re: search something from vim in certain directory

2007-02-22 Thread Ryan Phillips
Peng Yu <[EMAIL PROTECTED]> said: > Hi, > > I have a C++ project in some dir say "project" or its subdir. Although > I can use find and grep outside vim to search for any word in > "project". But this is not very convenient. > > I want to do the search in vim. And vim should give me a list of all

Re: search something from vim in certain directory

2007-02-22 Thread Jean-Rene David
* Peng Yu [2007.02.22 11:15]: > I have a C++ project in some dir say "project" > or its subdir. Although I can use find and grep > outside vim to search for any word in "project". > But this is not very convenient. Well you can use an external grep from within vim. One advantage is that it's relat

search something from vim in certain directory

2007-02-22 Thread Peng Yu
Hi, I have a C++ project in some dir say "project" or its subdir. Although I can use find and grep outside vim to search for any word in "project". But this is not very convenient. I want to do the search in vim. And vim should give me a list of all the occurrences of the searched word. Then I c