[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Program for quoting text like in email?



On Mon, 2009-06-08 at 20:05 -0700, Daniel Burrows wrote:
> On Tue, Jun 09, 2009 at 11:03:39AM +1200, Richard Hector <richard@walnut.gen.nz> was heard to say:

> > :s/^/> /
> > 
> > should work for the quoting, as with the sed example someone else gave.
> 
>   You have to put a range in there or it'll only hit the current line:
> 
> :0,$s/^/> /

True. I usually use visual mode - shift-v and cursors (or G to jump to
the bottom, in this case) to select the lines, then I only type what I
did above, and it sticks in the range automatically.

Richard



Reply to: