How to change the color of the highlighted misspelled word?

In the subject that I use for vim, the lines are shown in red, but the problem is that I have a spell check, and misspelled words are also shown in red.

This makes it difficult to view the error until you go to that word and delete any character.

I want to make highlighting misspelled words a little easier than currently. Say # ff2929.

                                                        You can't see what is the misspelled word

+5
source share
2 answers

You can use the hi(short for :help highlight) command in ~/.vimrc. General structure:

hi SpellBad    ctermfg=015      ctermbg=000     cterm=none      guifg=#FFFFFF   guibg=#000000   gui=none

cterm- for the vim terminal, and gui- for gVim. fgindicates the foreground and color of the letters, and bgindicates the background and color of the letters.

0-15 (8 8 ) 0-255 , 256 , xterm-256colors. gui . xterm-color-table 256 . , ( ).

, . , :set spell, asdflkjasldf - . :hi SpellBad ctermfg=000 guifg=#000 , . , xterm-color , .

+9
source

Try the following:

 :hi SpellBad guibg=#ff2929 ctermbg=224
  • guibg for GUI
  • ctermbg for TERM
+5
source

All Articles