Closed ericonr closed 2 years ago
Vim's default 'formatlistpat'
does this. You can change it in your vimrc to achieve the desired effect:
set formatlistpat=^\\s*\\d\\+[\\]:.)}]\\s\\+
I'm on the fence about whether ftplugin/gitcommit.vim
should itself change this. The problem isn't "the default 'formatlistpat'
is bad for gitcommit
files" but rather "the default 'formatlistpat'
is bad for almost all files." I suppose we can try it on master
for a bit and see if anyone complains.
Thanks you!
Originally in https://github.com/neovim/neovim/issues/18396
Steps to reproduce:
git commit
gq
to auto format itThe commit message in question:
The commit body is changed to:
Per https://github.com/neovim/neovim/issues/18396#issuecomment-1116741530 , this might not be possible to fix (or even considered a bug):
But I'd like to bring it up to confirm.