Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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
Node Status?
node history
Node Type: perlquestion [id://4937]
Approved by root
[shmem]: LanX: now I have to find a succinct transformation FOOL => MONK
[LanX]: yeah but Marto already proposed a new "Lex Sun-D" ...
[karlgoethebier]: the word really exists: http://www. urbandictionary. com/define.php? term=fool
[shmem]: ...possibly involving RTFM
[karlgoethebier]: big surprise!
[Eily]: LanX I try to avoid answering, but I did feel that this one post was going into much detail to prove a false claim (that SHA-1 is secure, I was just wrong about how insecure it is)
[LanX]: ironically...
[LanX]: yeah whatever ... I'm in the favorable condition to already autohiding him ... how can I judge the poor FOOLs who still see his contributions xD
[Eily]: he's been pretty saavy about threads that were implictly about him in the past. I think he might have deliberatly avoiding mentioning it for some reason (he got tired?)
[Eily]: he did mention one of his propositions: basically make it possible to ignore downvotes, by separating them more from the upvotes

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-07-24 17:23 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (356 votes). Check out past polls.