Vim has this awful annoying habit of splitting my commit messages and automatically line-breaking them, rendering the second line with a red background for some reason.

How can I make vim stop doing this?
文件类型插件强制执行首选的 Git 提交消息样式:短标题和硬换行符。如果您不同意该样式,请通过将以下内容放入来撤消设置~/.vim/after/ftplugin/gitcommit.vim:
setlocal wrap formatoptions<
Run Code Online (Sandbox Code Playgroud)