On Fri, Jun 12, 1998 at 06:39:11PM +1000, [EMAIL PROTECTED] wrote: > While I have found some Vim settings that wrap messages on screen, they > don't seem to insert the CR (or LF/CR, or LF, or whatever it is these > days) at the end of the line...
Here's part of my muttrc; among other things, it sets the linewidth to 76 (for text you type), allows you to reformat part of the body text to that linewidth (using gq ; preserving quote structure) or the whole body text (",ref", you probably need to have edit_hdrs set in mutt for it). HTH, Ray " " Mail (mutt) & News " " ,kqs = kill quoted signature "map ,kqs G?^> *-- $<CR>d/^-- $<CR> " goto end-of-buffer, search-backwards for a quoted sigdashes " line, ie "^> -- $", and delete unto end-of-paragraph: map ,kqs G?^> *-- $<CR>d} " ,kpq kill SuperCite (aka PowerQuote) quote (replacing it by `>') map ,kpq :%s/^> *[a-zA-Z]*>/> >/<C-M> " reformat body text to current textwidth " map ,ref 1G/^$<CR>V/^-- $<CR><Up>Q1G map ,ref G?^-- $<CR><Up>V1G/^[ \t]*$<CR>Q1G " ,rot = rot13 encode or decode visualised text vmap ,rot :!tr A-Za-z N-ZA-Mn-za-m<CR> " PGP sign (human readable) vmap ,sign :!pgp -fast<CR> """""""""""""""""""""""""""""""" Autocommands """""""""""""""""""""""""""""""" :if !exists("home_autocommands_loaded") : let home_autocommands_loaded = 1 : : augroup Messages " Mail & news : autocmd! : autocmd BufRead mutt*[0-9],snd.*,.letter,.followup,.article,.article[0-9] set textwidth=76 formatoptions=2tcq comments=n:>,n::,n:#,n:%,n:\| digraph : autocmd BufRead mutt*[0-9],snd.*,.letter,.followup,.article,.article[0-9] :normal ,kqs " - Assume 80-column screen width (which is very common), and allow " for our text to be quoted a couple of times without requiring " reformatting to fit in 80-columns. " - Attempt to reformat quoted text in messages properly. Recognise " the most common single character quote indicators `>', `:', `#', `%', " `|'. The only other reasonably common quote indicator that this " doesn't deal with is the stupid ?Supercite? convention `JDOE>', " which ought to be banned for waste of bandwith. " - Enable backspace for digraphs " - Kill quoted signature : augroup END :endif -- Tevens ben ik van mening dat Nederland overdekt dient te worden. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]