Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 6 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'"


# 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

Another approach is to specify an extra source file just for mutt with vim's -S cli flag:

Here is the value of editor in my .muttrc:

set editor="vim -S ~/.mutt/vimrc"

And then here is my ~/.mutt/vimrc:

set textwidth=0
set wrapmargin=0
share|improve this answer

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 :-( – Martin Ueding Oct 14 '11 at 14:18

Your Answer


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.