Re: Line length and word wrapping
On Mon, Dec 18, 2000 at 09:15:29AM -0500, Jeffrey A Schoolcraft wrote: I have a problem with my line length and word wrapping. I'm not sure where the configurations are in the muttrc but if someone could help me I would appreciate it (and I'm sure everyone else I write to would also). Yes, you certainly do. :-) You should deal with that in your editor, not in mutt. There has been discussion of how to do this in vim on this list; you might check the archives. -- -- C^2 No windows were crashed in the making of this email. Looking for fine software and/or web pages? http://w3.trib.com/~ccurley PGP signature
Re: Line length and word wrapping
Jeffrey A Schoolcraft proclaimed on mutt-users that: I have a problem with my line length and word wrapping. I'm not sure where the configurations are in the muttrc but if someone could help me I would appreciate it (and I'm sure everyone else I write to would also). The config is in your .vimrc, .exrc (or whatever editor you use for mutt) -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI The joys of love made her human and the agonies of love destroyed her. -- Spock, "Requiem for Methuselah", stardate 5842.8
Re: Line length and word wrapping
I'm pretty sure that I've fixed my line length word prolem. If someone could just post back and say yes or not I would appreciate it. Thanks. Jeff * Jeffrey A Schoolcraft ([EMAIL PROTECTED]) wrote: I have a problem with my line length and word wrapping. I'm not sure where the configurations are in the muttrc but if someone could help me I would appreciate it (and I'm sure everyone else I write to would also). Jeff
Re: Line length and word wrapping
On 2000-12-18 09:15:29 -0500, Jeffrey A Schoolcraft wrote: I have a problem with my line length and word wrapping. I'm not sure where the configurations are in the muttrc but if someone could help me I would appreciate it (and I'm sure everyone else I write to would also). :-) It's nothing you can configure with mutt proper - it's a property of the editor you use. If it's vi, look at the wrapmargin variable. -- Thomas Roessler [EMAIL PROTECTED]
Re: Line length and word wrapping
* Jeffrey A Schoolcraft ([EMAIL PROTECTED]) wrote: I have a problem with my line length and word wrapping. I'm not sure where the configurations are in the muttrc but if someone could help me I would appreciate it (and I'm sure everyone else I write to would also). I just changed my editor entry to: # editor set editor='vim "+set tw=73"' This automatically sets a 73 column textwrap in vim, so that I no longer have to pipe all my email paragraphs through fmt. However, I just noticed that if I go back and type on a line, it doesn't automatically re-wrap the line, so it looks like I still do have to format it through fmt. :/ anyhow... Mike -- Mike Erickson mee(at)quidquam.com http://www.quidquam.com/ "The more noise a man or a motor makes the less power there is available." - W. R. McGeary
Re: Line length and word wrapping
On Mon, Dec 18, 2000 at 03:58:21PM -0800, Mike E wrote: set editor='vim "+set tw=73"' This automatically sets a 73 column textwrap in vim, so that I no longer have to pipe all my email paragraphs through fmt. However, I just noticed that if I go back and type on a line, it doesn't automatically re-wrap the line, so it looks like I still do have to format it through fmt. :/ There's no really good way (i.e., none that I like) to automatically reformat paragraphs within vim, but there are some things you can do to make it easier. For example, you can use vim's internal formatter to reformat the current paragraph by typing gqip Or, if you prefer to use fmt, you can put something like this in your .vimrc: au BufNewFile,BufRead,BufEnter *set equalprg= au BufNewFile,BufRead,BufEnter /tmp/mutt-* set equalprg=fmt and reformat the current paragraph with =ip Of course you can use object/motion commands other than "ip", but you get the idea. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications Product Generation Unit | Spokane, Washington, USA
Re: Line length and word wrapping
Gary, On Mon, Dec 18, 2000 at 03:58:21PM -0800, Mike E wrote: set editor='vim "+set tw=73"' This automatically sets a 73 column textwrap in vim, so that I no longer have to pipe all my email paragraphs through fmt. However, I just noticed that if I go back and type on a line, it doesn't automatically re-wrap the line, so it looks like I still do have to format it through fmt. :/ At 2000/12/18/16:48 -0800 Gary Johnson [EMAIL PROTECTED] wrote: There's no really good way (i.e., none that I like) to automatically reformat paragraphs within vim Hmmm... Maybe you'll like this. Works for either vi or vim. Define the following key mapping in .exrc or .vimrc: map } 0J071lBXi Notice that the 'i' is followed by a newline and an escape character, not by '^', 'M', '^', and '['. Then enter vi(m), position the cursor anywhere on the first line of a paragraph, and in command mode, press the '}' key repeatedly, with each press formatting the current line (which advances) so that it is not more than 72 characters long. This is my own "text-flow macro". Vary the "71" to your taste. Make it N - 1, where N is the maximum number of characters per line acceptable to you. David -- Live in a world of your own, but always welcome visitors.
Re: Line length and word wrapping
On Mon, Dec 18, 2000 at 08:34:37PM -0800, David Alban wrote: At 2000/12/18/16:48 -0800 Gary Johnson [EMAIL PROTECTED] wrote: There's no really good way (i.e., none that I like) to automatically reformat paragraphs within vim Hmmm... Maybe you'll like this. Works for either vi or vim. Define the following key mapping in .exrc or .vimrc: map } 0J071lBXi Then enter vi(m), position the cursor anywhere on the first line of a paragraph, and in command mode, press the '}' key repeatedly, with each press formatting the current line (which advances) so that it is not more than 72 characters long. Thanks, David. That does save a few keystrokes and would be handy when using vi. I often do something similar by first typing 'gqj' to reformat the current line and the next line, then typing '.' to repeat the operation down the page as many times as necessary. This also works for reformatting various styles of comments, including messages quoted with leading ' '. What I meant was that I haven't found a good way to have vim automatically reflow the lines of a paragraph as I type, or when changing from insert mode to command mode. I've seen ways to do it, but because vim doesn't distinguish among different paragraph types, all the techniques I've seen assume that all paragraphs should be reformatted when edited. That doesn't work very well when editing other structures such as tables. Any technique that requires that I toggle some macro mode for different paragraph types or end insert mode with a character other than Escape is, to me, more bother than just using gq when necessary. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications Product Generation Unit | Spokane, Washington, USA
Re: Line length and word wrapping
Gary, At 2000/12/18/21:49 -0800 Gary Johnson [EMAIL PROTECTED] wrote: Thanks, David. That does save a few keystrokes and would be handy when using vi. I often do something similar by first typing 'gqj' to reformat the current line and the next line, then typing '.' to repeat the operation down the page as many times as necessary. This also works for reformatting various styles of comments, including messages quoted with leading ' '. Wow. That's *much* better than what I was doing! Shows how little vim documentation I've read. :-) David -- Live in a world of your own, but always welcome visitors.