While using gVim on my Windows 10 machine at work, I discovered and started using the amazing spell checker when writing markdown. In gVim, misspelled words are underlined with the red squiggly everyone is familiar with.
At home on my Ubuntu machine, I realized the red squiggly only works in gVim, not in my terminal. I looked through the help files and it sounds like highlighting is the default way vim points out spelling errors. Yet, none of my misspelled words are highlighted. This is a problem for me because although I have gVim installed on this machine, a prefer to use vim in the terminal.
I have tried starting vim without my config file and the spell check does work (it highlights bad words). When I start vim with my config, it does not highlight words, even when I enter :set spell
.
vim version: 8.0
vim plugins: surround.vim
,solarized.vim
terminal: Xfce Terminal
current contents of vimrc
Update:
Spell-check highlighting works when I comment-out colorscheme solarized
in my vimrc. So the problem is probably with that color plugin. I still have no idea how to fix it though.
:set spellfile?
show? When you're in a file with spelling mistakes does]s
move the cursor?:set spellfile?
is empty. However]s
does move the cursor to misspelled words. I find and correct misspellings although they are not highlighted. I think the problem must be withsolarized.vim
, since when I disable it, the highlighting works. But how to fix that color plugin, I have no idea...