Vim spell check result is set to yellow

The spell check function is built into

vim, which can be turned on and off by using a simple command in the terminal.
: set spell
] s: move the cursor to the next spelling error
[s: move the cursor to the previous spelling error

my requirements:
how to set the color of spelling mistakes to yellow after entering set spell?

Vim
Mar.07,2021

: hi SpellBad ctermbg=yellow

can also be underlined, and the foreground color can be anything. If the setting is confused, you can use
: hi clear SpellBad
to clear it and start from scratch

.
Menu