I am trying to enable the spell in Vim in case of editing the git commit message.
The filename is fixed, so autocmd won't help.
I've put a modeline in the initial message, but the ftpplugin/gitcommit.vim
disables the modeline.
What is the way to have custom vim settings for git-commit case?
git commit msg has filetype gitcommit
. You can add autocmd on that filetype, for example:
autocmd FileType gitcommit setlocal spell
All commit message in your vim should have spell check activated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With