mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
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#18270a0f37dbbf4
(cherry picked from commitc06f0970b0
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
1c8805e3b2
commit
19d58cb2cc
@@ -1296,8 +1296,9 @@ The pattern is interpreted like mostly used in file names:
|
|||||||
[^ch] match any character but 'c' and 'h'
|
[^ch] match any character but 'c' and 'h'
|
||||||
|
|
||||||
Note that for all systems the '/' character is used for path separator (even
|
Note that for all systems the '/' character is used for path separator (even
|
||||||
Windows). This was done because the backslash is difficult to use in a pattern
|
for MS-Windows). This was done because the backslash is difficult to use in a
|
||||||
and to make the autocommands portable across different systems.
|
pattern and to make the autocommands portable across different systems. To
|
||||||
|
only match a '/' on all platforms (e.g. in a non-file pattern), use "\/".
|
||||||
|
|
||||||
It is possible to use |pattern| items, but they may not work as expected,
|
It is possible to use |pattern| items, but they may not work as expected,
|
||||||
because of the translation done for the above.
|
because of the translation done for the above.
|
||||||
|
@@ -3402,8 +3402,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
autocmd. Example: >vim
|
autocmd. Example: >vim
|
||||||
augroup vimrc-incsearch-highlight
|
augroup vimrc-incsearch-highlight
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd CmdlineEnter /,\? :set hlsearch
|
autocmd CmdlineEnter [\/\?] :set hlsearch
|
||||||
autocmd CmdlineLeave /,\? :set nohlsearch
|
autocmd CmdlineLeave [\/\?] :set nohlsearch
|
||||||
augroup END
|
augroup END
|
||||||
<
|
<
|
||||||
CTRL-L can be used to add one character from after the current match
|
CTRL-L can be used to add one character from after the current match
|
||||||
|
4
runtime/lua/vim/_meta/options.lua
generated
4
runtime/lua/vim/_meta/options.lua
generated
@@ -3269,8 +3269,8 @@ vim.bo.inex = vim.bo.includeexpr
|
|||||||
--- ```vim
|
--- ```vim
|
||||||
--- augroup vimrc-incsearch-highlight
|
--- augroup vimrc-incsearch-highlight
|
||||||
--- autocmd!
|
--- autocmd!
|
||||||
--- autocmd CmdlineEnter /,\? :set hlsearch
|
--- autocmd CmdlineEnter [\/\?] :set hlsearch
|
||||||
--- autocmd CmdlineLeave /,\? :set nohlsearch
|
--- autocmd CmdlineLeave [\/\?] :set nohlsearch
|
||||||
--- augroup END
|
--- augroup END
|
||||||
--- ```
|
--- ```
|
||||||
---
|
---
|
||||||
|
@@ -4431,8 +4431,8 @@ local options = {
|
|||||||
autocmd. Example: >vim
|
autocmd. Example: >vim
|
||||||
augroup vimrc-incsearch-highlight
|
augroup vimrc-incsearch-highlight
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd CmdlineEnter /,\? :set hlsearch
|
autocmd CmdlineEnter [\/\?] :set hlsearch
|
||||||
autocmd CmdlineLeave /,\? :set nohlsearch
|
autocmd CmdlineLeave [\/\?] :set nohlsearch
|
||||||
augroup END
|
augroup END
|
||||||
<
|
<
|
||||||
CTRL-L can be used to add one character from after the current match
|
CTRL-L can be used to add one character from after the current match
|
||||||
|
Reference in New Issue
Block a user