Re: vim question - comment multiple lines

From: Jason Dixon (jason_at_dixongroup.net)
Date: 09/10/03

  • Next message: MKlinke: "Re: vim question - comment multiple lines"
    To: Red Hat Mailing List <redhat-list@redhat.com>
    Date: 10 Sep 2003 00:41:12 -0400
    
    

    On Wed, 2003-09-10 at 00:18, Didier Casse wrote:
    > On Wed, 10 Sep 2003, Herculano de Lima Einloft Neto wrote:
    > >
    > > I guess this is an easy one.. how can I insert / delete something at
    > > the beggining of each line of a block in vi? Still can't figure it,
    > > though there must be at least ten ways.
    > >
    > On way is to use PERL! Since I'm familiar with PERL, I'm gonna give u a
    > PERL solution:

    [snip]

    Didier, please don't take this to be a scathing criticism, but... rather
    than creating a 12-line perl script to make simple edits, why not take a
    few minutes to expand your own knowledge (obviously, you're a smart guy)
    and find a reasonable solution using vi, as the OP was inquiring?

    The answer to his question is basic VI syntax. There's no reason to
    reinvent this wheel with a mac truck. :)

    What's next? A 1000-line perl program to take the place of cdrecord?
    (http://cdrx.sourceforge.net). </tongue-in-cheek>

    -- 
    Jason Dixon, RHCE
    DixonGroup Consulting
    http://www.dixongroup.net
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: MKlinke: "Re: vim question - comment multiple lines"

    Relevant Pages

    • Re: menus on the fly w/sh
      ... > Alan Connor wrote: ... I do it all the time myself, rarely posting them because one of ... So lay your wonderful perl solution on me and I will be happy to ...
      (comp.unix.shell)
    • Re: how I could extract information from text?
      ... Certainly it doesn't need a perl solution. ... As I noted, the solution I wrote took all of five to close the file when done) lines of Matlab code, the most complex of which was the numstr() call we already discussed. ... Post your attempted script and we can work through it... ...
      (comp.soft-sys.matlab)
    • Re: SED: parsing a flexible text file ... in over my head!
      ... I would tend to choose PERL unless you ... > common unix tools, rather than a PERL solution. ... Your investment in the 'awk ...
      (comp.unix.shell)
    • Re: Skip C like comments
      ... 2005-01-07, 12:11, Brian McCauley: ... >> for the string inside comments. ... perl operators and the special way alternation works in perl ... "foobar" as with that perl solution). ...
      (comp.lang.perl.misc)
    • Re: Misbehaving sort function
      ... >> Perl)? ... >> perldoc -f readline ... that's *not* a Perl solution. ... Paul Lalli ...
      (comp.lang.perl.misc)