.vim/after/syntax/{LANG}.vimファイルに入れるためのより一般的なスペルチェックの例外ルールは次のとおりです。
" Disable spell-checking of bizarre words:
" - Mixed alpha / numeric
" - Mixed case (starting upper) / All upper
" - Mixed case (starting lower)
" - Contains strange character
syn match spellingException "\<\w*\d[\d\w]*\>" transparent contained containedin=pythonComment,python.*String contains=@NoSpell
syn match spellingException "\<\(\u\l*\)\{2,}\>" transparent contained containedin=pythonComment,python.*String contains=@NoSpell
syn match spellingException "\<\(\l\+\u\+\)\+\l*\>" transparent contained containedin=pythonComment,python.*String contains=@NoSpell
syn match spellingException "\S*[/\\_`]\S*" transparent contained containedin=pythonComment,python.*String contains=@NoSpell
pythonComment,python.*String言語に合わせて変更してください。
transparent一致が包含ブロックから強調表示プロパティを継承することを意味します(つまり、これらのルールはテキストの表示方法を変更しません)。
containedこれらの一致が含まれているブロックを超えて拡張するのを防ぎます(ブロック\S*の終わりを超えて一致する可能性が高い最後のルールが終了します)
containedinこれらの新しいルールを追加する既存の構文グループのリストを保持します。
contains=@NoSpell継承されたすべてのグループをオーバーライドして、一致したテキストをスキップするようにスペルチェッカーに指示します。