I've added the following to my ~/.vimrc
:
autocmd FileType gitcommit setlocal spell
This is great, as when I'm editing a got commit message, I now have spell
enabled.
However, our commit style guidelines state that the commit message (the first line, a subject line) should always be lowercase, triggering spell's detection.
Is there a way to express that spellcapcheck
should disable for only the first line fo that scope?