5

How can I change the color that is used to highlight misspelled words in vim-lexical?

10

The repository says it uses Vim's spellcheck, so you should be able edit your color file's SpellBad highlighting to do this. Something like:

hi SpellBad ctermfg=red guifg=red

You could also put these in your vimrc, but your color file is really the proper place for it.

  • cterm is for terminal vim
  • gui is for gVim

The full set of options are cterm ctermbg ctermfg gui guibg guifg. You can use :help on those terms for more information.

You might also think about changing SpellLocal and SpellCap if you wan't to change Vim's other spell check colors.

  • In some cases it is good idea to reset highlighting to the defaults before applying new style: hi clear SpellBad and then hi SpellBad ... – Maxim Suslov Sep 19 '18 at 7:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.