runtime(doc): use a single pattern in :h 'incsearch' example
related: https://github.com/vim/vim/pull/18262#issuecomment-3277008408 closes: #18270 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
976b365305
commit
a0f37dbbf4
@ -5088,8 +5088,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
autocmd. Example: >
|
||||
augroup vimrc-incsearch-highlight
|
||||
autocmd!
|
||||
autocmd CmdlineEnter /,\? :set hlsearch
|
||||
autocmd CmdlineLeave /,\? :set nohlsearch
|
||||
autocmd CmdlineEnter [\/\?] :set hlsearch
|
||||
autocmd CmdlineLeave [\/\?] :set nohlsearch
|
||||
augroup END
|
||||
<
|
||||
CTRL-L can be used to add one character from after the current match
|
||||
|
||||
Reference in New Issue
Block a user