aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-17 16:16:44 +0800
committerGitHub <noreply@github.com>2023-01-17 16:16:44 +0800
commitfc692dfce1dada0b40356bfcdfc55ee783f9ee2d (patch)
treebf42fe421a8d384904434d1e9c3ae3aaa065ebcb /runtime/doc
parent2093e574c6c934a718f96d0a173aa965d3958a8b (diff)
parentd5126787393075f07d4be9dc37f5d7a3cec9e177 (diff)
downloadrneovim-fc692dfce1dada0b40356bfcdfc55ee783f9ee2d.tar.gz
rneovim-fc692dfce1dada0b40356bfcdfc55ee783f9ee2d.tar.bz2
rneovim-fc692dfce1dada0b40356bfcdfc55ee783f9ee2d.zip
Merge pull request #21851 from zeertzjq/vim-8.2.4482
vim-patch:8.2.{4482,4485}: fuzzy cmdline custom completion
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/map.txt8
-rw-r--r--runtime/doc/options.txt2
2 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index ccd48a8959..cb8b162eb6 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1432,9 +1432,11 @@ The function arguments are:
The function may use these for determining context. For the "custom"
argument, it is not necessary to filter candidates against the (implicit
pattern in) ArgLead. Vim will filter the candidates with its regexp engine
-after function return, and this is probably more efficient in most cases. For
-the "customlist" argument, Vim will not filter the returned completion
-candidates and the user supplied function should filter the candidates.
+after function return, and this is probably more efficient in most cases. If
+'wildoptions' contains "fuzzy", then the candidates will be filtered using
+|fuzzy-matching|. For the "customlist" argument, Vim will not
+filter the returned completion candidates and the user supplied function
+should filter the candidates.
The following example lists user names to a Finger command >
:com -complete=custom,ListUsers -nargs=1 Finger !finger <args>
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 0683bb0602..169ec95b03 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -7126,7 +7126,7 @@ A jump table for the options with a short description can be found at |Q_op|.
global
A list of words that change how |cmdline-completion| is done.
The following values are supported:
- fuzzy Use fuzzy matching to find completion matches. When
+ fuzzy Use |fuzzy-matching| to find completion matches. When
this value is specified, wildcard expansion will not
be used for completion. The matches will be sorted by
the "best match" rather than alphabetically sorted.