I am trying to do:
I get an error message saying
Unrecognized flags in ~/.vim/spell/en.utf-8.add line 16
I have attempted the following to no avail:
:spellgood w\/o :spellgood w//o :spellgood "w/o" :spellgood 'w/o'
I also tried visually selecting the word in question and hitting zg. Same error.
How can I get vim to stop telling me that w/o is a bad word?
Adding o to the spell file or capitalizing w/o to W/O works, but those options make me sad.
I have added the following as ~/.vim/spell/en_US.aff
SET ISO8859-1 KEY qwertyuiop|asdfghjkl|zxcvbnm TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'- NOSUGGEST ! # ordinal numbers (1st, 2nd, 3th, 11th) and decads (0s, 10s, 1990s) COMPOUNDMIN 1 # only in compounds: 1th, 2th, 3th ONLYINCOMPOUND c # compound rules: # 1. [0-9]*1[0-9]th (10th, 11th, 12th, 56714th, etc.) # 2. [0-9]*[02-9](1st|2nd|3rd|[4-9]th) (21st, 22nd, 123rd, 1234th, etc.) COMPOUNDRULE 2 COMPOUNDRULE n*1t COMPOUNDRULE n*mp WORDCHARS 0123456789'
and the following file as ~/.vim/spell/en_US.dic
and have executed the following vim commands:
:cd ~/.vim/spell :mkspell mine en_US.aff :set spelllang+=mine :spellinfo file: ~/.vim/spell/en.utf-8.spl file: ~/.vim/spell/mine.utf-8.spl file: ~/.vim/spell/en.utf-8.add.spl
And I still cannot get vim to recognize
w/o as a good word.