vim-patch:a0f37db: runtime(doc): use a single pattern in :h 'incsearch' example (#35721)

related: https://github.com/vim/vim/pull/18262#issuecomment-3277008408
closes: vim/vim#18270

a0f37dbbf4
This commit is contained in:
zeertzjq
2025-09-12 07:08:02 +08:00
committed by GitHub
parent 0923ba322b
commit c06f0970b0
4 changed files with 9 additions and 8 deletions

View File

@@ -4700,8 +4700,8 @@ local options = {
autocmd. Example: >vim
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