diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-04-19 18:56:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 18:56:51 +0200 |
commit | dbc4af71861bf2d3bac6974a0bdb99b18a13666a (patch) | |
tree | e9baf3d0c05e38dacc5543c5187b1f6e88562790 /runtime | |
parent | 0124a7bfa9e27796e561cb0b3a045b9327bf7077 (diff) | |
parent | b16afe4d556af7c3e86b311cfffd1c68a5eed71f (diff) | |
download | rneovim-dbc4af71861bf2d3bac6974a0bdb99b18a13666a.tar.gz rneovim-dbc4af71861bf2d3bac6974a0bdb99b18a13666a.tar.bz2 rneovim-dbc4af71861bf2d3bac6974a0bdb99b18a13666a.zip |
Merge pull request #18081 from famiu/feat/highlight/cursearch
feat(highlight): implement CurSearch highlight
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 8 | ||||
-rw-r--r-- | runtime/doc/syntax.txt | 3 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 7ea6a92a34..1966a344b2 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -3176,8 +3176,12 @@ A jump table for the options with a short description can be found at |Q_op|. 'hlsearch' 'hls' boolean (default on) global When there is a previous search pattern, highlight all its matches. - The |hl-Search| highlight group determines the highlighting. Note that - only the matching text is highlighted, any offsets are not applied. + The |hl-Search| highlight group determines the highlighting for all + matches not under the cursor while the |hl-CurSearch| highlight group + (if defined) determines the highlighting for the match under the + cursor. If |hl-CurSearch| is not defined, then |hl-Search| is used for + both. Note that only the matching text is highlighted, any offsets + are not applied. See also: 'incsearch' and |:match|. When you get bored looking at the highlighted matches, you can turn it off with |:nohlsearch|. This does not change the option value, as diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 4e3900aeed..fd713b1f32 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -5090,6 +5090,9 @@ ColorColumn used for the columns set with 'colorcolumn' *hl-Conceal* Conceal placeholder characters substituted for concealed text (see 'conceallevel') + *hl-CurSearch* +CurSearch used for highlighting a search pattern under the cursor + (see 'hlsearch') *hl-Cursor* Cursor character under the cursor lCursor the character under the cursor when |language-mapping| diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 59f085977b..f5cd24b734 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -351,6 +351,8 @@ Functions: Highlight groups: |hl-ColorColumn|, |hl-CursorColumn| are lower priority than most other groups + |hl-CurSearch| highlights match under cursor instead of last match found + using |n| or |N| |hl-CursorLine| is low-priority unless foreground color is set *hl-VertSplit* superseded by |hl-WinSeparator| |