Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

perl perl use with VIM editor

by Anonymous Monk
on Mar 06, 2000 at 15:05 UTC ( [id://4937]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I use VIM which is a an excellent vi clone with colour syntax for perl. Does anyone have any cool .vimrc lines for use with perl? I would like a way of being able to jump to lines with errors (set makeprg?) and capture output in another vim window as is possible with emacs.

Replies are listed 'Best First'.
Re: perl use with VIM editor
by pschoonveld (Pilgrim) on Mar 06, 2000 at 23:49 UTC
    I have some extensions. This is straight out of my .gvimrc, so it has the menu extensions. beware.

    :46amenu Perl.Set\ Perl\ Make :set makeprg=perl\ -c\ %
    :!perl -c %rl.Build\ \ \ \ \ \ \ \ \ \ \ \ <F5> :w
    :!perl -d %rl.Debug :w
    :46amenu Perl.Run\ \ \ \ \ \ \ \ \ \ \ \ \ \ <F6> :w^M:!perl %

    The % refers to the current filename. Incidently, when Tim Vroom, the maintainer of this here site, and I worked together, we had a full integrated BackOrifice messaging system. I ran linux, and because he is a tool of the man, he ran windows.
    Gvim is the greatest thing since sliced bread.

      Would you be so kind as to explain what the above code does, other than adding the Perl menu to the menubar? thanks
      That was not by choice... clearly I have risen above those days. Besides you had seniority... and we could only have one linux box to test the cross-platform capabilities of our system. If I'm such a tool how did I start out making more than you were thanks to my smooth finagling? Must at least have been a better paid "tool of the man".

      In the future when you link could you make sure they point to actual nodes... otherwise I might just have to delete your less than helpful comments in the future. Look at Perl Monk Procedures if you want to learn how to do things correctly for a change.

      vroom | Tim Vroom | vroom@cs.hope.edu

Log In?
Username:
Password:

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

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

    No recent polls found