Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Jumping through perl modules with vim

by fisher (Priest)
on Jan 21, 2011 at 11:31 UTC ( [id://883516]=note: print w/replies, xml ) Need Help??


in reply to Jumping through perl modules with vim

"I am using vim with Freebsd, but any other method than vim are welcome if it enables me to jump higher."

I personally use lightweight IDE called geany on a linux desktop. This small IDE knows about perl syntax and jumps into other files (with function definition) within the project by a simple keystroke.

Also for emacs there is etags, I used to use it before.

If you intend to use it only with perl, I suggest to look closely at PADRE.

  • Comment on Re: Jumping through perl modules with vim

Replies are listed 'Best First'.
Re^2: Jumping through perl modules with vim
by remiah (Hermit) on Jan 22, 2011 at 07:11 UTC
    I tried PADRE. It took long time to compile but lighter than I thought. IDE with debugger is fascinating for me. For jumping through facilities it seems the same mechanism with ctags. Suppose you are editing BBB/Bar.pm and wonder what is function aaa?
    #AAA/Some.pm package some; sub aaa{}; 1; #BBB/Foo.pm package foo; sub aaa{} ; 1; #BBB/Bar.pm package bar; use base qw(foo); sub bbb{ aaa(); } 1;
    ctags generate sorted list for aaa like this.
    aaa AAA/Some.pm aaa BBB/Bar.pm
    If class hierarchy took considered, they must jump to BBB/Bar.pm's function aaa, but Padre and ctags jump to AAA/Some.pm's function aaa. I guess they use same logic and jump to first line of sorted list.

    Just type g+Ctrl+] show me list of functions in ctags and vim. It is enough good to me so far. In reality, we have factory class? or something, so, much or less I have to jump with my legs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://883516]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-25 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found