set cursorlinecursorline should only highlight the backgroud a little to inform user of the line that the cursor is on, and should not make the syntax colors gone.
8.2.4198
Windows 11, windows terminal
No response
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
An example with .vim file. After I set cursorline, that line no longer has syntax highlighting.

—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
that sounds more like a problem with your colorscheme
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
that sounds more like a problem with your colorscheme
I thought it was a problem with vim as I also use neovim with the same config and curline worked fine on nvim.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I test it and find something really weird.
default colorscheme does not have the problem
but nearly all other colorscheme including the preinstalled ones like desert and industry do have the problem.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
related discussion on vim-dev: https://groups.google.com/g/vim_dev/c/e6puIxRP2gI/m/Q4XUxSDpAgAJ?pli=1
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Yes I remember something like that. What I don't know, is that something
that should be fixed by vim core or should the colorscheme generally
define/not define the Normal highlighting group?
Don't know.
Closed #9617.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
This must be a problem in your configuration. I can set the cursorline background and the syntax highlighting is clearly visible.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
This must be a problem in your configuration. I can set the cursorline background and the syntax highlighting is clearly visible.
It is actually not.
The issue is windows cmd.exe + set termguicolors + a colorscheme that defines a Normal highlight group.
It is easily reproducible as I mentioned in a vim_dev thread:
cmd.exe run vim -Nu NONEset termguicolorscolo industry (or any other that defines Normal hl)set ft=vimsyntax oniecho "hello world"set cursorlineindustry
peachpuff
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Just to make it clear, I have never experienced this issue except
set termguicolorsNormal highlight group.For me there is no issue for GVIM, OSX homebrewed vim, macvim, debian wsl vim.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Hmm, so this is only a problem in the MS-Windows console?
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Hmm, so this is only a problem in the MS-Windows console?
Yes, indeed!
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Reopened #9617.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
duplicate of #10241 let me close this one here.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #9617.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()