Re: Several Questions
Thanks to all who replied. My issues are largely solved.
Phil Pennock wrote:
> On 2006-01-05 at 15:58 -0500, James wrote:
> > First, email from some people appears with ^M at the end of each line.
> > I assume this is some sort of DOS line-ending issue,
>
> Shouldn't be -- email is transported with ^M in there (CRLF instead of
> LF). A client _could_ be inserting a second CR ... I've not seen that
> particular brokenness myself from anything except some mailing-list
> managers, but have learnt to not overestimate the _average_ quality of
> mail apps.
>
> It's only some senders and it's not coming via a mailing-list?
>
> > Third, mutt seems to be telling vim to break lines after 80 chars.
> > This is very annoying because when I edit, I get paragraphs in which
> > some lines are broken and others are not. I'd like my lines unbroken
> > unless I hit return. The vimrc file mutt uses includes the following
> > lines that might be relevant:
> > set filetype=mail
> > set nowrap
>
> It's the first one. Use "locate ftplugin/mail.vim" to find the filetype
> plugin; for me, it's: /usr/share/vim/vim63/ftplugin/mail.vim
>
> There's a local override for textwidth in that file.
>
> Don't tell it to set filetype to mail, or if you do want the other
> features, then after the "set nowrap" try "setlocal tw=0"; you could
> also put that in ~/.vim/after/ftplugin/mail.vim together with any other
> overrides to be run after the default mail.vim settings. (Drop the
> 'after/' path component to get the path for stuff to run first, assuming
> default vim path settings).
>
> I recommend the ~/.vim/after/ftplugin/mail.vim so that this also applies
> when editing mail files without calling from mutt; that way, you can
> prepare long mails in advance. My ~/.vimrc contains:
> au BufNewFile,BufRead *.msg setf mail
> so that any filename ending .msg will be edited in mail mode.
> --
> I am keeping international relations on a peaceable footing.
> You are biding your time before acting.
> He is coddling tyrants.
> -- Roger BW on topic of verb conjugation