1) To underline misspelled words, I can execute the following in an open buffer:
:hi clear SpellBad
:hi SpellBad cterm=underline
:set spell
2) However, if I write in my .vimrc
the first two lines, namely:
:hi clear SpellBad
:hi SpellBad cterm=underline
and when I open a file, I execute :set spell
, misspelled words are highlighted in color, but not underlined.
Why are the .vimrc
settings in 2) overridden? How can I get the same result as in 1)?