Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Every time I type an email with mutt, it inserts these line breaks every 70 characters or so. I'd rather it just relied on word wrap instead, since my editing style (lots of revision) makes reformatting a pain. Is there a way to set this up in muttrc?

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

You can set the editor option in your .muttrc option and include command line options. The command line options can set vim settings. An example would be:

set editor="vim +':set textwidth=0' +':set wrapmargin=0' +':set wrap'"

or

# use vim, tell it to set cursor on first line of body
set editor="vim -c 'set expandtab textwidth=65 | normal }j'"

And so on and so forth. See the vim man page for many more options.

share|improve this answer
add comment

Try settings the textwidth to 0:

; ~/.vimrc
:set textwidth=0
:set wrapmargin=0
share|improve this answer
    
I have no problem changing the settings in vim, but it's mutt's default vim settings that I can't set. –  Jon Oct 13 '11 at 17:34
    
Hmm, since I do not use mutt, I cannot help you more than this I guess :-( –  queueoverflow Oct 14 '11 at 14:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.