Make vim stop splitting the Git commit messages

gitvim

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.

enter image description here

How can I make vim stop doing this?

Best Answer

The filetype plugin enforces the preferred Git commit message style: Short title, and hard line breaks. If you don't agree with that style, undo the settings by putting the following into ~/.vim/after/ftplugin/gitcommit.vim:

setlocal wrap formatoptions<