in reply to Jumping through perl modules with vim

remiah:

I've been meaning to give ctags a try, so I took a quick look via google and found that it supports perl, so I'll have to give it a try in the morning. The page I found gives a sample invocation as something like this:

ctags -f tags --recurse --totals \ --exclude=blib --exclude='*~' \ --languages=Perl --langmap=Perl:+.t

Update: Another thread here on perlmonks mentions a pltags.pl script that comes with vim, and a module by osfameron. I'll have to look into those as well.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Jumping through perl modules with vim
by remiah (Hermit) on Jan 21, 2011 at 08:52 UTC
    thanks for reply. I didn't know I already have pltags.pl .
    I thought I used to create symbolic links for recursive directrories, so I did it like this.
    #make tags file find ./ | xargs pltags.pl #replace ./ with fullpath ...space character of [] is tab... cat tags | sed 's^[ ]\./^[ ]'`pwd`'/^' > .buff mv .buff tags #create symlink find . -type d -exec ln -s `pwd`/tags {}/tags \;
    But "Another thread" told me if I set tags=path/to/tagfile value on vim, this is completly needless. "Another thread" was also good for me because I forgot the key for jump Ctrl+], back Ctrl+T. It was very helpful for me.