I had a ridiculous typo in a Git commit message recently, so I decided to explore spell checking in Vim. As it turns out, it’s extremely easy.
I only wanted it enabled for Git commit messages and markdown, so I added the following to my vimrc / init.vim:
" Spell-check Markdown files and Git Commit Messages autocmd FileType markdown setlocal spell autocmd FileType gitcommit setlocal spell
By doing this, it highlights potential misspellings in red underline. You can see a list of potential corrections by moving the cursor over the word in normal mode and...