aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-21 18:04:08 +0800
committerGitHub <noreply@github.com>2023-10-21 18:04:08 +0800
commitfc02908c97fa850964a1f15a32eb7a872449b7e7 (patch)
treec5479b22d5a792677f79e933cbd16f459a36387c /runtime/doc
parentf1775da07fe48da629468bcfcc2a8a6c4c3f40ed (diff)
downloadrneovim-fc02908c97fa850964a1f15a32eb7a872449b7e7.tar.gz
rneovim-fc02908c97fa850964a1f15a32eb7a872449b7e7.tar.bz2
rneovim-fc02908c97fa850964a1f15a32eb7a872449b7e7.zip
vim-patch:d3e277f279ed (#25734)
matchparen: do not use hard-coded match id (vim/vim#13393) * matchparen: do not use hard-coded match id Instead of using the hard-coded match id 3, which may also be used by other plugins, let the matchparen plugin use whatever ids are automatically returned when calling matchaddpos(). For backwards-compatibility, keep the `:3match` call, which will still use the hard-coded id 3 (as mentioned in :h :3match). closes: vim/vim#13381 https://github.com/vim/vim/commit/d3e277f279ed628809eb6857ea3ebcfca566ca2a Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/pattern.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 09119b0918..17136ee650 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1442,10 +1442,11 @@ Finally, these constructs are unique to Perl:
Just like |:match| above, but set a separate match. Thus
there can be three matches active at the same time. The match
with the lowest number has priority if several match at the
- same position.
- The ":3match" command is used by the |matchparen| plugin. You
- are suggested to use ":match" for manual matching and
- ":2match" for another plugin.
+ same position. It uses the match id 3.
+ The ":3match" command is used by (older Vims) |matchparen|
+ plugin. You are suggested to use ":match" for manual matching
+ and ":2match" for another plugin or even better make use of
+ the more flexible |matchadd()| (and similar) functions instead.
==============================================================================
11. Fuzzy matching *fuzzy-matching*