Hello! I am looking to speed up my Perl programming. At my Linux prompt I type vi filename.pl to begin editing my Perl file. Then I make whatever changes I need to make, and then when I'm done I type :wq which takes me back to my shell prompt. I type perl -Wall filename.pl, and then usually I want to re-edit my file because I got some errors, so I push the Up arrow on my keyboard to cycle through my history and the first thing I get is vi filename.pl, which I can enter in to take me back to Vim.

This process is repeated like a thousand times a day. My question is: Is this really as fast as it can possibly get? Is there any way to just compile and run the program from within Vim? Preferably with just one function-key keystroke?


In reply to How to write out a Perl script and run it in as few keystrokes as possible. by MrSnrub

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.