I upgraded MacVim to 8.1.2168 (159) tonight and now the vimwiki files in Markdown format do not highlight correctly when I enable spell check.
I run set spell spelllang=en_ca
as I have before. It looks almost like the spell check is finding all of the first word except the first character in some (but not all!) of the sentences, and reporting those fractions of words as misspellings.
I believe this is some sort of new conflict between the vimwiki files in Markdown format and the new upgraded version of vim and spellcapcheck
Abridged output from set:
syntax=vimwiki
filetype=vimwiki
spell
spellcapcheck=[.?!]_[])'
spellfile=~/.vim/spell/en.utf-8.add
suffixesadd=.markd
I can see that the default string for spellcapcheck is default "[.?!]\_[\])'"' \t]\+"
while mine is [.?!]_[])'
. Yet I run
set spc="[.?!]\_[\])'"' \t]\+"
and the highlighting does not change.
When I run set list
I can see that there is an eol at the end of each line. This is as I expect.
It is not lost on me that the first word of each sentence is not highlighted if the remaining characters after the first character form a valid word:
- David does not appear as a highlighted spelling error because
avid
is a valid word. - Daphne appears as a highlighted spelling error because
aphne
is a typo.
Where do I look next to fix this?
spelllang=en_ca
andspellcapcheck=[.?!]_[])'
on terminal vim 8.1.1850. Is it only vimwiki files that do this? – D. Ben Knoble♦ Oct 21 '19 at 23:36'spellcapcheck'
to its default isn't correct (See:help option-backslash
and note that you shouldn't be including the surrounding quotes that are mentioned in the documentation for:help 'spc'
.) Having said that, I can't reproduce your issue either. Does running:set spc&
affect the problem? – Rich Oct 22 '19 at 9:23