Create the following 'init.vim':
set number signcolumn=yes foldcolumn=1 set cursorline cursorlineopt=line hi CursorLineNr ctermbg=Red guibg=Red hi CursorLineSign ctermbg=Yellow guibg=Yellow hi CursorLineFold ctermbg=Green guibg=Green
vim --clean -u init.vim
Observe that sign and fold columns at cursor line are not highlighted as Yellow and Green. Even though 'cursorline' is set and the help describes the behavior as "Like {Fold,Sign}Column when 'cursorline' is set for the cursor line.".
:set cursorlineopt=both. Now all CursorLine{Nr,Sign,Fold} are highlighted as red-yellow-green. So all of their behavior matches what is described in CursorLineNr: "Like LineNr when 'cursorline' is set and 'cursorlineopt' contains "number" or is "both", for the cursor line."
One of:
CursorLineFold and CursorLineSign do not depend on the 'cursorlineopt' value.sign and fold possible flags to 'completeopt'. With or without adding them to default value. Maybe rename both to all or only add all possible flag.The 1 is somewhat of a breaking change. The 2 is somewhat confusing in its current form. The 3 is more "correct" but is also somewhat breaking while requiring more work.
9.2.600
OS: EndeavourOS Linux x86_64, 7.0.11-arch1-1
Terminal: Ghostty 1.3.1-arch2
$TERM: xterm-ghostty
Shell: 0.113.1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()