Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line break issue with Neomutt #248

Open
christopherisnow opened this issue Feb 23, 2021 · 1 comment
Open

Line break issue with Neomutt #248

christopherisnow opened this issue Feb 23, 2021 · 1 comment

Comments

@christopherisnow
Copy link

christopherisnow commented Feb 23, 2021

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...

@corbin-zip
Copy link

Change your second line to this:
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light | set formatoptions-=t | set linebreak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants