[PLUG] Justify quoted text under Vim ?

Wil Cooley wcooley at nakedape.cc
Fri Jul 18 22:55:02 UTC 2003


On Fri, 2003-07-18 at 22:50, Tyler Creelan wrote:
> How do I justify inline-quoted text under Vim? For example,
> I'm replying to an email with a paragraph like this:
> 
> > It was a bright 
> > cold day in April, and the clocks were striking thirteen. Winston 
> > Smith, 
> > his chin nuzzled
> 
> and want to reformat it:
> 
> > It was a bright cold day in April, and the clocks were 
> > striking thirteen. Winston Smith, his chin nuzzled 
> 
> Under pine/pico, I used to do this using the "C-j" or justify command.
> The 'gq}' command works under Vim for regular paragraphs, but not for 
> these when the quotes should be preserved. Any ideas? 

Pipe it through fmt with the appropriate option.  Here's the lines from
my .vimrc:

" E-mail quoted text paragraph wrapping
map _k j{!}fmt -p"> "<cr>}

Has anyone gotten the Perl Text::AutoFormat module to actually work?  At
one point, someone (Paul H. I think) recommended it as the best filter,
but I built it and for the life of me cannot get it to do anything.

Wil
-- 
Wil Cooley                                 wcooley at nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
* * * * * * * Good, fast and cheap: Pick all 3! * * * * * * *
*   Naked Ape Consulting                http://nakedape.cc  *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20030718/2cdd340a/attachment.asc>


More information about the PLUG mailing list