Git commit formatting and spell check
If you have a hard time remembering to format your git commits properly, you can add this simple line to your .vimrc
file:
autocmd Filetype gitcommit setlocal spell textwidth=72
This will:
- Highlight formatting of your commit message (50 characters, no period)
- Spell check (you need to install aspell)
- Auto wordwrap your extended message at 72 characters
Written by BK Box
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#