mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
Attempt to override spellcheck highlighting; hotkey to check highlight group under cursor
This commit is contained in:
11
.vimrc
11
.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 <F9> to show the highlight group under the cursor (mainly for debugging)
|
||||
map <F9> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
|
||||
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
|
||||
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
|
||||
|
||||
" Word completion from dictionary (on ctrl+space)
|
||||
set complete+=kspell
|
||||
|
||||
|
||||
Reference in New Issue
Block a user