hilight misspelled words better

This commit is contained in:
2016-11-05 14:26:05 -04:00
parent af902fcb92
commit da02638ef4

View File

@@ -633,16 +633,16 @@ call s:HL('DiffText', s:yellow, s:bg0, s:inverse)
if has("spell")
" Not capitalised word, or compile warnings
if g:materialbox_improved_warnings == 0
call s:HL('SpellCap', s:none, s:none, s:undercurl, s:red)
call s:HL('SpellCap', s:red, s:bg0, s:inverse)
else
call s:HL('SpellCap', s:green, s:none, s:bold . s:italic)
endif
" Not recognized word
call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue)
call s:HL('SpellBad', s:red, s:bg0, s:inverse)
" Wrong spelling for selected region
call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:aqua)
call s:HL('SpellLocal', s:aqua, s:bg0, s:inverse)
" Rare word
call s:HL('SpellRare', s:none, s:none, s:undercurl, s:purple)
call s:HL('SpellRare', s:purple, s:none, s:inverse)
endif
" }}}