Linux, plaintext & minimalism
May 26, 2020

How to prevent NeoMutt from making line breaks in Neovim when you compose a message

When I compose a message in my e-mail client NeoMutt my editor Neovim inserts automatic line breaks after about 73 characters. I don’t like it at all.

Thankfully you can easily fix this by adding a few parameters to the $EDITOR for your NeoMutt configuration file:

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

This should work fine with Mutt and Vim as well.

Tags: Neovim | Vim | NeoMutt | Mutt


I don't have a commenting system simply because I haven't found a solution that I like. If you want to leave any feedback and/or have any questions feel free to contact me either via e-mail, the fediverse, by XMPP or by IRC (I'm Hund at freenode.net).