How to set a colorscheme that still shows spelling errors?
I am looking for two combined effects that I can acquire separately but not yet together.
Set Colorscheme alone: OK. If I want highlights on spelling mistakes I can use a
.vimrc
file with this single line:set spell
. So if I write a mwe file (mwe.vim) with a name in it as text content: John Morelock. Then the result is that vim recognizes John as a proper word, and does not highlight it, but then does properly highlight the last name. All OK up to here.Set Spelling alone: OK. As another task I would like to add a colorscheme, for example
solarized
. So I setcolorscheme solarized
as a single line in the.vimrc
. All fine here. I open up the same previous file, and it shows the file with specific colorscheme. If I put both lines together, setting colors and spelling, all is OK here.Set Colorscheme and Spelling together: not always OK. The issue is that both previous procedures working together works under certain circumstances, such as with the mentioned
colorscheme solarized
, but not with another half of colors, at least in my specific case. I would like, for instance to usecolorscheme adrian
with spelling, but as soon as I use these two together, all of it stops working. To makeadrian
work, the colorscheme line alone is not enough. Instead I have to add the line `set termguicolors', but this may be cancelling out my spelling to not show.
One hack is to eliminate schemecolors and fiddle with my terminal colors. Useful, but still my ideal solution would be to be able to choose colorschemes: adrian, matrix, onedark, or whatever. However, I would point out that many people seem to be asking questions about how to set coloring and highlights, so I would ask both a specific and a general question. I have browsed extensively, both in :h colorscheme
and StackExchange. Where should one prioritize a search to begin solving this simple problem?
Where could I start looking for my specific problem? Both via web, and my pc.
How to set good practices for setting colors, spelling and in general?
Edit: I should add that I am not being able to use the adrian
colorscheme with a single line invocation of setting colorscheme. To make it valid I have to add an extra line such as set termguicolors
but this does not keep the spelling working properly.