vimrc: highlight spelling mistakes

This commit is contained in:
surtur 2022-10-30 03:56:05 +01:00
parent 523a446983
commit e52f9c3e60
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -1241,6 +1241,12 @@ if g:colors_name =~# 'spacemacs-theme' && &background =~# 'dark'
endif endif
" spelling mistakes highlighting
" as per https://github.com/vim/vim/issues/6174#issuecomment-636869793
let &t_Cs = "\e[4:3m"
let &t_Ce = "\e[4:0m"
hi SpellBad guisp=red gui=undercurl guifg=NONE guibg=NONE ctermfg=NONE ctermbg=NONE term=underline cterm=undercurl ctermul=red
hi SpellCap guisp=yellow gui=undercurl guifg=NONE guibg=NONE ctermfg=NONE ctermbg=NONE term=underline cterm=undercurl ctermul=yellow
" compensate for lack of theme italics " compensate for lack of theme italics
for s in ["Comment", "Constant", "Include", "Define", "Macro", "Delimiter", "Debug", "Identifier", "Boolean", "markdownItalic"] for s in ["Comment", "Constant", "Include", "Define", "Macro", "Delimiter", "Debug", "Identifier", "Boolean", "markdownItalic"]