Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

perl perl use with VIM editor

by Anonymous Monk
on Mar 06, 2000 at 15:05 UTC ( #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 |

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-05-16 05:02 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (62 votes). Check out past polls.