Mercurial > vim
comparison runtime/doc/options.txt @ 12720:37c384802df4 v8.0.1238
patch 8.0.1238: incremental search only shows one match
commit https://github.com/vim/vim/commit/2e51d9a0972080b087d566608472928d5b7b35d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 29 16:40:30 2017 +0100
patch 8.0.1238: incremental search only shows one match
Problem: Incremental search only shows one match.
Solution: When 'incsearch' and and 'hlsearch' are both set highlight all
matches. (haya14busa, closes #2198)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 29 Oct 2017 16:45:04 +0100 |
parents | b390f5003e2f |
children | 0c704288ced4 |
comparison
equal
deleted
inserted
replaced
12719:cd6ab105a71a | 12720:37c384802df4 |
---|---|
4445 When compiled with the |+reltime| feature Vim only searches for about | 4445 When compiled with the |+reltime| feature Vim only searches for about |
4446 half a second. With a complicated pattern and/or a lot of text the | 4446 half a second. With a complicated pattern and/or a lot of text the |
4447 match may not be found. This is to avoid that Vim hangs while you | 4447 match may not be found. This is to avoid that Vim hangs while you |
4448 are typing the pattern. | 4448 are typing the pattern. |
4449 The highlighting can be set with the 'i' flag in 'highlight'. | 4449 The highlighting can be set with the 'i' flag in 'highlight'. |
4450 See also: 'hlsearch'. | 4450 When 'hlsearch' is on, all matched strings are highlighted too while typing |
4451 a search command. See also: 'hlsearch'. | |
4452 If you don't want turn 'hlsearch' on, but want to highlight all matches | |
4453 while searching, you can turn on and off 'hlsearch' with autocmd. | |
4454 Example: > | |
4455 augroup vimrc-incsearch-highlight | |
4456 autocmd! | |
4457 autocmd CmdlineEnter [/\?] :set hlsearch | |
4458 autocmd CmdlineLeave [/\?] :set nohlsearch | |
4459 augroup END | |
4460 < | |
4451 CTRL-L can be used to add one character from after the current match | 4461 CTRL-L can be used to add one character from after the current match |
4452 to the command line. If 'ignorecase' and 'smartcase' are set and the | 4462 to the command line. If 'ignorecase' and 'smartcase' are set and the |
4453 command line has no uppercase characters, the added character is | 4463 command line has no uppercase characters, the added character is |
4454 converted to lowercase. | 4464 converted to lowercase. |
4455 CTRL-R CTRL-W can be used to add the word at the end of the current | 4465 CTRL-R CTRL-W can be used to add the word at the end of the current |