Wednesday, June 23, 2010

Re: grepping a string from a large code base

Thank you guys, I guess I'll focus on how to use grep and ack more
efficiently... I need to grep log strings from C++ code to see where
it comes from and then debug...

have a great day!

On 23 June 2010 13:58, Yegappan Lakshmanan <yegappanl@gmail.com> wrote:
> Hi,
>
> On Wed, Jun 23, 2010 at 3:41 AM, Jim Green
> <student.northwestern@gmail.com> wrote:
>> Hi,
>> will global or idutils support searching for any string? or they only
>> support search for variable/function names?
>>
>
> You cannot search for arbitrary text using these tools.
> The global and idutils manuals describe the keywords that can be
> searched. The keywords usually supported are the names of functions,
> variables, macros, structures and enumerations. You cannot search
> for text in comments and strings.
>
>  Yegappan
>
>> Thx!
>>
>> On Jun 22, 11:58 pm, Yegappan Lakshmanan <yegapp...@gmail.com> wrote:
>>> Hi,
>>>
>>> On Tue, Jun 22, 2010 at 7:27 PM, 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.
>>>
>>> If you are programming in C or C++ or Java, then you can use GNU id-utils.
>>> Refer to the following pages:
>>>
>>> http://www.gnu.org/software/idutils/manual/idutils.htmlhttp://www.vim.org/scripts/script.php?script_id=251
>>>
>>> You can also try using GNU global:
>>>
>>> http://www.gnu.org/software/global/
>>>
>>> - Yegappan
>>
>> --
>> 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
>>
>
> --
> 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
>

--
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: