lkml.org 
[lkml]   [2010]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: how do YOU hack the linux kernel ?
From
Date
On Fri, 2010-01-29 at 09:10 +0100, Daniel Mack wrote:
> On Tue, Jan 19, 2010 at 02:52:57PM +0200, Ramagudi Naziir wrote:
> > do you use vim ?
> >
> > If so, how do you open files you want to read/edit ?
> > Assuming you don't remember their exact name/location, you'd need to
> > use something like 'find . -iname '*pattern*'. which is slow.
> > You can also ":tabnew ." and just browse the folders, but that's super slow too.
>
> Just use ctags to index your tree. Vim can then use this index to
> directly drop you at the definition of a symbol. Works very well.


Yup. That's what I use.

> Just
> google around to find tutorials to describe that in detail.

$ man ctags
$ vim
:help tags

for those who don't wish to rely on the Goggle.

Regards,
Andy

> LXR is also a nice help sometimes: http://lxr.linux.no/linux/
>
> Other than that you might develop a feeling for where to search, so you
> can narrow your 'git grep' to specific places.
>
> HTH,
> Daniel




\
 
 \ /
  Last update: 2010-01-29 12:39    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site