On Tuesday, August 14 at 12:04 PM, quoth Andrew Myers:

The "gq" formatting feature in vim is very useful. Has anyone looked into making it do optimal line breaking, so text lines tend to be closer to the same length? There is a dynamic programming algorithm that will do this efficiently. The tool "par" does this and is available open-source.

:set formatprg=par

~Kyle
--
This is my simple religion. There is no need for temples; no need for complicated philosophy. Our own brain, our own heart is our temple; the philosophy is kindness.
                                                         -- Dalai Lama

Attachment: pgpSNd6lCoqKn.pgp
Description: PGP signature

Reply via email to