textwidth/linewrap

Cameron Simpson cs at cskk.id.au
Thu Jan 7 21:32:55 UTC 2021


On 07Jan2021 19:15, Matthias Apitz <guru at unixarea.de> wrote:
>El día jueves, enero 07, 2021 a las 06:40:35p. m. +0100, Jens John escribió:
>> On Thu, 7 Jan 2021, at 18:25, tech-lists wrote:
>> > I guess lots of people would use mutt with vim-console.
>> > Can anyone tell me please what setting they use for line
>> > wrapping? I thought in .vimrc it'd be
>> >
>> > set textwidth=72
>
>I do use in ~/.muttrc
>
>set editor="vim \'+set textwidth=72\' \'+syntax match WarningMsg 
>/\\%>70v.*/\' -i NONE"

I set editor to a shell script which avoids putting tricky formatting in 
my muttrc, and since I use format=flowed email that script invokes my 
"vim-flowed" script which says:

    exec vim \
        -c 'silent 1,/^$/s/  *$//' \
        -c 'set filetype=mail' \
        -c 'set formatoptions=walqj' \
        ${1+"$@"}

My vim settings also include textwidth=72.

My muttrc has:

    set reflow_text=yes
    set reflow_wrap=-4
    set text_flowed=yes

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Mutt-users mailing list