Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No highlighting or underline for spell check after awesome vimrc install #548

Closed
majamin opened this issue Nov 29, 2019 · 2 comments
Closed

Comments

@majamin
Copy link

majamin commented Nov 29, 2019

I have a fresh install of Ubuntu Desktop (18.04), installed awesome vimrc as per instructions and everything works as expected, except when I spell check using <leader>ss, then moving through unrecognized words using <leader>sn or ]s.

It moves to misspelled words, but no highlighting or underlining of words appears on screen. Is this the expected behaviour? If so, is there a way to turn it this back on?

Also, this is my first "issue" submission, so if this is not the venue for these types of queries, please let me know.

@amix
Copy link
Owner

amix commented Nov 30, 2019

This isn't something I can reproduce, @majamin. You can try to run it in another environment or try with another color scheme.

@amix amix closed this as completed Nov 30, 2019
@bryango
Copy link
Contributor

bryango commented Aug 6, 2022

I see the same problem. A related issue is #418. It seems to be a problem of the default color scheme peaksea.vim

if v:version >= 700
if has('spell')
if 0
" ctermsp is not supported in Vim7, we ignore it.
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=130
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=25
hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=133
hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=23
else
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE
hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE
hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE
endif
endif

if v:version >= 700
if has('spell')
" the ctermsp= is not supported in Vim 7 we simply ignored
if 0
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=209
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=69
hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=219
hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=153
else
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE
hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE
hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE
endif
endif

The reason is listed in the changelog of peaksea, v3.3: https://www.vim.org/scripts/script.php?script_id=760

Anton Sharnov thinks it is better to leave the foreground color as is for spell error in 256-color cterm. If you agree this, the version 3.3 is for you, else you can just edit the source.

I have hence created a fork to re-enable the colors. See if it helps!

bryango added a commit to bryango/vimrc that referenced this issue Aug 6, 2022
Spellcheck colors are disabled since v3.3 of `peaksea.vim`, see: https://www.vim.org/scripts/script.php?script_id=760. This commit restores the colors, thus fixing amix#418 & amix#548. See more explanations in amix#548 (comment).
amix pushed a commit that referenced this issue Oct 15, 2022
dosongpon pushed a commit to digitalorganic/vimrc that referenced this issue Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants