goyo.vim icon indicating copy to clipboard operation
goyo.vim copied to clipboard

Line break issue with Neomutt

Open christopherisnow opened this issue 3 years ago • 1 comments

Here a plea for tips to fix a line breaking issue with Neomutt. My wish is to have soft line wrapping, so paragraphs don't get broken up automatically into lines at 80 characters.

In init.vim:

set wrap
set linebreak
set textwidth=0
set wrapmargin=0

autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light

When I toggle Goyo in Neovim outside Neomutt, life is good. But I get hard line breaks with Goyo inside Neomutt -- even with this line in muttrc:

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

Oddly, when I toggle out of Goyo in Neomutt and type more than 80 characters in the standard Neovim buffer, I DO get a soft break. I'm stumped...

christopherisnow avatar Feb 23 '21 21:02 christopherisnow