[TxMt] Re: Insert hard wraps

Robin Houston robin.houston at gmail.com
Wed Apr 18 16:32:03 UTC 2007


On 4/18/07, Robert W. Kuhn <2006 at ku.hn> wrote:
>
> Is there any program (or script) that respects the quotation marks?


Vim does. I don't know an easy way to pipe through vim, but here's a
difficult way:

  vim -c 'set tw='$TM_COLUMNS - >/dev/null 2<<<'gqG:%!cat >'>(cat >&2)

Pipe the text through that, and it does what you want, I think.


Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070418/44e38a41/attachment.html>


More information about the textmate mailing list