From 1666fe9dfe08201c92271b7a59fb2f96a20eb8db Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 30 Jul 2021 10:49:42 +0800 Subject: vim-patch:8.1.2029: cannot control 'cursorline' highlighting well Problem: Cannot control 'cursorline' highlighting well. Solution: Add "screenline". (Christian Brabandt, closes vim/vim#4933) https://github.com/vim/vim/commit/017ba07fa2cdc578245618717229444fd50c470d --- runtime/doc/options.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 5292847240..f55ec62b77 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1809,14 +1809,21 @@ A jump table for the options with a short description can be found at |Q_op|. *'cursorlineopt'* *'culopt'* -'cursorlineopt' 'culopt' string (default: "both") +'cursorlineopt' 'culopt' string (default: "number,line") local to window - Settings for how 'cursorline' is displayed. Valid values: - "line" Highlight the text line of the cursor with + Comma separated list of settings for how 'cursorline' is displayed. + Valid values: + "line" Highlight the text line of the cursor with CursorLine |hl-CursorLine|. - "number" Highlight the line number of the cursor with + "screenline" Highlight only the screen line of the cursor with + CursorLine |hl-CursorLine|. + "number" Highlight the line number of the cursor with CursorLineNr |hl-CursorLineNr|. - "both" Highlight as both "line" and "number" are set. + + Special value: + "both" Alias for the values "line,number". + + "line" and "screenline" cannot be used together. *'debug'* -- cgit