From 17221e10daacd32470109b71e403ada8061ee92b Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 13 Aug 2018 22:17:32 +0200 Subject: [PATCH] Attempt to override spellcheck highlighting; hotkey to check highlight group under cursor --- .vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vimrc b/.vimrc index 9788991..7ccd7a1 100644 --- a/.vimrc +++ b/.vimrc @@ -240,6 +240,17 @@ if !exists( "b:myLang" ) endif endif +" Try to override colours for highlighting misspelled and mis-capitalised words +hi clear SpellBad +hi clear SpellCap +hi SpellBad ctermfg=red ctermbg=NONE guifg=#af5f00 guibg=NONE +hi SpellCap term=reverse cterm=undercurl gui=undercurl guisp=#eeee00 + +" Map to show the highlight group under the cursor (mainly for debugging) +map :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' +\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" +\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" + " Word completion from dictionary (on ctrl+space) set complete+=kspell