hi
I work mostly in vim. I'm not a very advanced vim user, though. So even vim gives me some headeache from time to time I still prefere it to the various editors and IDEs out there, because I like the command mode and because it's available and preinstalled on most platforms.

Although I've tried different things I'm still *very* unsatisfied with the implementation of the following basic workflow:

1. Edit a perl script in the editor
2. Press one key (eg. F5) to save and run the script
3. Print the output to a window below the editor window
4. Possibility to easily switch to the output window and scroll through the messages
5. Possibility to easily switch back to the editor window


Currently I work with a GNU screen/vim combo.
________________ | term1: vim | |~ | |~ | |________________| | term2 | |jdoe:% | |________________|

But there is always a lot of typing involved. For example to accomplish step 2. in the workflow above:

- ESC, :w (to save the script in vim in term1)
- CTRL-Z, tab (to switch to term2)
- type "./myscript.pl" (to run the script in term2)


This can't be it, I think it's far from ideal...

How do you run your scripts with vim? Or is emacs better suited for this?

thanks ben

In reply to How do you run your scripts with vim (or emacs)? by baurel

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.