aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2017-10-30 11:07:35 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2018-01-26 18:39:20 +0300
commit41394d82365b504c89bb4da9ed5adc11c6f619f0 (patch)
treec0632c87165c2a17e0a1df9b6de0d106565b9e0e /runtime
parent0a56bd33308d2c4ae45f261498d69cb44fbd13c8 (diff)
downloadrneovim-41394d82365b504c89bb4da9ed5adc11c6f619f0.tar.gz
rneovim-41394d82365b504c89bb4da9ed5adc11c6f619f0.tar.bz2
rneovim-41394d82365b504c89bb4da9ed5adc11c6f619f0.zip
vim-patch:8.0.1238
Problem: Incremental search only shows one match. Solution: When 'incsearch' and and 'hlsearch' are both set highlight all matches. (haya14busa, closes vim/vim#2198) https://github.com/vim/vim/commit/2e51d9a0972080b087d566608472928d5b7b35d7
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/options.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index ded9f7667a..2e584ea9bb 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -3299,7 +3299,17 @@ A jump table for the options with a short description can be found at |Q_op|.
pattern and/or a lot of text the match may not be found. This is to
avoid that Vim hangs while you are typing the pattern.
The |hl-IncSearch| highlight group determines the highlighting.
- See also: 'hlsearch'.
+ When 'hlsearch' is on, all matched strings are highlighted too while typing
+ a search command. See also: 'hlsearch'.
+ If you don't want turn 'hlsearch' on, but want to highlight all matches
+ while searching, you can turn on and off 'hlsearch' with autocmd.
+ Example: >
+ augroup vimrc-incsearch-highlight
+ autocmd!
+ autocmd CmdlineEnter [/\?] :set hlsearch
+ autocmd CmdlineLeave [/\?] :set nohlsearch
+ augroup END
+<
CTRL-L can be used to add one character from after the current match
to the command line. If 'ignorecase' and 'smartcase' are set and the
command line has no uppercase characters, the added character is