Closed erikw closed 5 years ago
Thanks for the suggested patch! I ran into this issue as well.
The suggested patch changes the way spelling errors are highlighted in gvim as well. You can leave gvim unchanged while fixing vim using:
if (has("gui_running"))
let s:c = ",undercurl"
else
let s:c = ",underline"
endif
This should not be necessary. :help undercurl
clearly says that when undercurl is not available underline will be used, but this must be broken in this release of vim.
https://github.com/vim/vim/issues/2424 looks relevant.
@jflorian
vim/vim#2424 looks relevant.
Indeed, this issue is due to that bug. Solarized is not the problem, as @KenKundert pointed out.
@erikw
I'm guessing this has been fixed by now, in which case this issue can be closed. If not, try adding set t_Cs=
to your vimrc. That workaround is sufficient in some versions of Vim.
@joshklod I can confirm that it works now in vim 8.1.0374
! I'm closing the ticket.
Hello,
I've had the same vim configuration in regards to using solarized colorscheme and how my spelling is configured, for years and years. But today, possibly when I updated to vim-runtime 8.0.1389-1 in Arch, misspelled words stopped being underlined in terminal vim.
This is how it currenlty looks, bad word is not highlighted as it should:
The spelling works in gvim+solarized and in terminal with other colorschemes.
I noticed that in the terminal SpellBad is set to
and I see from
So when I change vim-colors-solarized to user underline for terminal always instead of
undercurl
, this patch,and now the misspelled word are underlined as they have been for years for me!
What could be the cause of this? Is there any reason for having
undercurl
set instead ofunderline
for terminals? For GUI it makes sense to have the fancier undercurl of course, but not for terminal.If not, I suggest my patch above =).