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