Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 3824  / 1 Year ago, tue, february 14, 2023, 7:30:03

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?


More From » vim

 Answers
6

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.


[#43096] Tuesday, February 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itchlos

Total Points: 486
Total Questions: 115
Total Answers: 110

Location: Macau
Member since Fri, Apr 28, 2023
1 Year ago
;