As per the documentation in :help spell, Vim's in-built spell checker detects 4 types of misspellings: SpellBad, SpellCap, SpellRare, SpellLocal
I would like to keep SpellBad & SpellLocal but I want to disable SpellCap & SpellRare. Turning the highlighting off for them is easy enough. However when try to forward or backward to the next/previous misspelled word with ]s & [s, SpellCap & SpellRare words are included.
I have managed to disable SpellCap by putting set spellcapcheck= in my .vimrc, however I can't seem to find any way to do a similar thing for SpellRare.
Using [S & ]S instead of [s & ]s would be a good solution however this only moves you to next/previous SpellBad word. I want it to include SpellBad & SpellLocal words.
Does anyone now how to do this?
You could override the
]smappings to skip rare spell errors (e.g. by checking the syntax), but the cleanest approach would be building custom spellfiles that exclude the rare words.As these are identified by the
?flag (:help spell-RARE), filtering them out should be trivial to do. Building them (:help Myspell) might be more complex; I haven't done that so far.