Couldn't agree more, but... didn't you forget to close your subtitution with a 
trailing slash?

:25,45 s/^/#/

vi Rocks



> ----------
> From:         Luke Bakken
> Reply To:     [EMAIL PROTECTED]
> Sent:         Friday, July 6, 2001 1:47 PM
> Cc:   anton; [EMAIL PROTECTED]
> Subject:      RE: Re: Editor
> 
> You know at the risk of starting a huge flamewar here (tho I doubt it'll
> happen - people seem really reasonable on this list) I'm going to put in
> my $0.02 for not just learning vi, but becoming fluent with it:
> 
> 1. It's universally available.
> 2. Once you really learn it, it is the fastest editor out there.  However,
> learning vi takes patience and practice.  My two suggestions for becoming
> a vi wizard are these:
> 
> Go "cold turkey"
>       only use vi for text editing on every system you use.
> 
> Perfect practice makes perfect
>       don't manually insert 20 lines of #-characters to
>       comment out a section of perl when :25,45s/^/# will do.
> 
> The latter is true of anything worth practicing (i'm a professional
> musician) and it applies especially well with vi (or other text editors)
> You need to always ask yourself when learning "How can I do this faster,
> or with fewer keystrokes?"  Instead of holding down that arrow key to move
> to the 5th line down, hit 5j.  Or use markers to leave a trail through a
> long document. After forcing yourself to think twice before editing, the
> commands will seem like second nature, and you'll get editing tasks done
> much quicker.  You'll begin to wonder why people even waste their time
> with a mouse to edit text.
> 
> One side effect of using vi and perl is that you get a double dose of
> regular expression experience, and you'll find yourself inventing ways of
> doing boring repetivive tasks either entirely in vi or with vi and perl
> combined.  That's when things get real fun :-)
> 
> 
> On Fri, 6 Jul 2001, Daryl J. Hoyt wrote:
> 
> > I use vi only when nothing else is available. ;->
> >
> > -----Original Message-----
> > From: anton [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 06, 2001 8:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Re: Editor
> >
> >
> > I've listen to you all about the editors problem
> > Is anybody out there still using the old bottom-dweller vi ?
> >
> > On Fri, 06 Jul 2001 14:48:53 +0200, Matija Papec <[EMAIL PROTECTED]>
> > wrote:
> > > "Aigner-Torres, Mario" <[EMAIL PROTECTED]> wrote:
> > > >Hi Bill,
> > > >
> > > >my choice is gnuemacs
> > >
> > > Does it support script debugging? I'm looking for nice *nix editor
> > > /debugger with breakpoints, step execution, etc. Have you tried
> > > PerlComposer?
> > >
> > > >with cperl!
> > >
> > > What is cperl?
> > >
> > >
> > >
> > > --
> > > Matija
> >
> 
> 

Reply via email to