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

Re: Program for quoting text like in email?

On Tue, Jun 09, 2009 at 11:03:39AM +1200, Richard Hector <richard@walnut.gen.nz> was heard to say:
> As an aside, I use the "It's all text" firefox plugin to let me fire up
> the editor of my choice (gvim, in my case) for any web text box.
> Then I'd use the editors features to format it. I can't remember how to
> do the line wrapping stuff in vim, but
> :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/^/> /


Reply to: