diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-09 22:05:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-09 22:05:49 +0200 |
commit | 410e98a70bc00ea4bed51e55a8fe20e56a72c087 (patch) | |
tree | e0104f5f3a0f6974c686b3905e551fdcfc6a9f7f /runtime/doc | |
parent | e5fbd7393067c279860598ac8359d1617b1082b9 (diff) | |
download | vim-git-410e98a70bc00ea4bed51e55a8fe20e56a72c087.tar.gz |
patch 8.1.2019: 'cursorline' always highlights the whole linev8.1.2019
Problem: 'cursorline' always highlights the whole line.
Solution: Add 'cursorlineopt' to specify what is highlighted.
(closes #4693)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/options.txt | 19 | ||||
-rw-r--r-- | runtime/doc/quickref.txt | 1 | ||||
-rw-r--r-- | runtime/doc/syntax.txt | 3 |
3 files changed, 19 insertions, 4 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 48c9ce5f0..c7247ff9d 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -2461,13 +2461,26 @@ A jump table for the options with a short description can be found at |Q_op|. local to window {not available when compiled without the |+syntax| feature} - Highlight the screen line of the cursor with CursorLine - |hl-CursorLine|. Useful to easily spot the cursor. Will make screen - redrawing slower. + Highlight the text line of the cursor with CursorLine |hl-CursorLine|. + Useful to easily spot the cursor. Will make screen redrawing slower. When Visual mode is active the highlighting isn't used to make it easier to see the selected text. + *'cursorlineopt'* *'culopt'* +'cursorlineopt' 'culopt' string (default: "both") + local to window + {not in Vi} + {not available when compiled without the |+syntax| + feature} + 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 + CursorLineNr |hl-CursorLineNr|. + "both" Highlight as both "line" and "number" are set. + + *'debug'* 'debug' string (default "") global diff --git a/runtime/doc/quickref.txt b/runtime/doc/quickref.txt index 90e76f2e5..bfc387e73 100644 --- a/runtime/doc/quickref.txt +++ b/runtime/doc/quickref.txt @@ -670,6 +670,7 @@ Short explanation of each option: *option-list* 'cursorbind' 'crb' move cursor in window as it moves in other windows 'cursorcolumn' 'cuc' highlight the screen column of the cursor 'cursorline' 'cul' highlight the screen line of the cursor +'cursorlineopt' 'culopt' settings for 'cursorline' 'debug' set to "msg" to see all error messages 'define' 'def' pattern to be used to find a macro definition 'delcombine' 'deco' delete combining characters on their own diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index afad1759f..0fd9769c6 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -5042,7 +5042,8 @@ IncSearch 'incsearch' highlighting; also used for the text replaced with LineNr Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. *hl-CursorLineNr* -CursorLineNr Like LineNr when 'cursorline' or 'relativenumber' is set for +CursorLineNr Like LineNr when 'cursorline' is set and 'cursorlineopt' is + set to "number" or "both", or 'relativenumber' is set, for the cursor line. *hl-MatchParen* MatchParen The character under the cursor or just before it, if it |