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

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
You might find info in this snippet, this script and this more descriptive node useful.

My personal contribution is:
:map \# ^[I#!/usr/bin/perl -w^Muse strict;^M
I have been using Vim with embedded Perl for a while.
I don't think I am exploiting all the possibilities, but it is really helpful to have perl regular expressions at your disposal, so you don't have to think about the differences between the two RegEx dialects. Once you are used to Perl's syntax, capturing parentheses in Vim  \(.*\) look painfully unfamiliar.
I often use Perl's sort to manipulate my lines of text.

A nice feature is that you can test one or more lines of code, while you are writing them. Here is just one example:
# line 10 of your code $a = sqrt(64);
If you want to see the result of that assignment (provided that your internal CPU can't calculate it :) this command
:10perldo s/$/$_/ee
will append the result at the end of the line.
I mapped this command, referring to the current line.
:map _ee ^[:.,.perldo s/$/$_/ee^M
I am sure that there is a lot more than these few tricks. Having Perl embedded in your editor can trigger your imagination!
 _  _ _  _  
(_|| | |(_|><

In reply to Re: Perl Editor Voodoo by gmax
in thread Perl Editor Voodoo by vroom

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (3)
    As of 2020-04-04 02:48 GMT
    Find Nodes?
      Voting Booth?
      The most amusing oxymoron is:

      Results (32 votes). Check out past polls.