Wednesday, June 23, 2010

Re: grepping a string from a large code base

Hi,

you can use command like
:vimgrep /pattern/ **/*.[ch]
which greps recursively all *.c and *.h files for pattern.

Be sure to switch vim's "current directory" with :cd command to top
level dir from which start start recursive grep.
Check with :pwd command vim's "current directory".

Regards...

On 23 Jun., 04:27, Jim Green <student.northwest...@gmail.com> wrote:
> Hi vim community,
> I need to constantly perform a grepping of a string(eg, sth in logs)
> from a large code base, now I use grep on the command line to do this.
> I just started using ctags but it can not do the grepping of arbitrary
> string for me.
>
> could any vim users point me to a popular tool that I can use to
> improve my efficiency, I use only vim to browse and write code so I
> hope this is not off topic here.
>
> Thank you,
> Jim

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: