At some point an update broke my vim's spell checking ability. This is always a good opportunity to review my
.vimrc. I figured out that vim's spell checking abilities actually go far further then just checking a word against a dictionary. It can check for words it can't find, words that are wrongly capitalized, words that are rare (bonus question: What is an example of a rare word?) and words that are wrong for the region selected. I updated my
" Toggle spell checking map <leader>ss :setlocal spell! spelllang=en_us<cr> " Colors for words that failed spell check " Word not recognized hi clear SpellBad hi SpellBad cterm=underline ctermfg=blue " Word not capitalized hi clear SpellCap hi SpellCap cterm=underline ctermfg=red " Word is rare hi clear SpellRare hi SpellRare cterm=underline ctermfg=green " Wrong spelling for selected region hi clear SpellLocal hi SpellLocal cterm=underline ctermfg=yellow
Works like a charm! I now write a sentence:
and am surprised to learn that
muon is wrong for the selected region. The way I understand this, is that
muon is correct in one English dialect. My question now is: How do I figure out in what dialect this word is considered as correct?