From e52f9c3e60998b081815389668748caca5bef131 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Oct 2022 03:56:05 +0100 Subject: [PATCH] vimrc: highlight spelling mistakes --- .vim/vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index a63dba3..e415774 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1241,6 +1241,12 @@ if g:colors_name =~# 'spacemacs-theme' && &background =~# 'dark' 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 for s in ["Comment", "Constant", "Include", "Define", "Macro", "Delimiter", "Debug", "Identifier", "Boolean", "markdownItalic"]