aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-17 14:34:27 +0800
committerGitHub <noreply@github.com>2023-01-17 14:34:27 +0800
commit2093e574c6c934a718f96d0a173aa965d3958a8b (patch)
tree06770bda995170000c71e1fbd0b73adb4b52e515 /runtime
parentf6929ea51d21034c6ed00d68a727c2c7cd7ec6ac (diff)
parent15e42dd4498829e5315b9b0da7384bedf466d707 (diff)
downloadrneovim-2093e574c6c934a718f96d0a173aa965d3958a8b.tar.gz
rneovim-2093e574c6c934a718f96d0a173aa965d3958a8b.tar.bz2
rneovim-2093e574c6c934a718f96d0a173aa965d3958a8b.zip
Merge pull request #21850 from zeertzjq/vim-8.2.4463
vim-patch:8.2.{4463,4465,4475,4477,4478,4479,4608}: fuzzy cmdline builtin completion
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt4
-rw-r--r--runtime/doc/options.txt8
2 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 3dc21c0d73..bdbd026a09 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -3000,6 +3000,10 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
is applied to filter the results. Otherwise all the matches
are returned. The 'wildignorecase' option always applies.
+ If the 'wildoptions' option contains "fuzzy", then fuzzy
+ matching is used to get the completion matches. Otherwise
+ regular expression matching is used.
+
If {type} is "cmdline", then the |cmdline-completion| result is
returned. For example, to complete the possible values after
a ":call" command: >
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index efeeba983e..0683bb0602 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -7126,6 +7126,14 @@ 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
+ 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.
+ This will find more matches than the wildcard
+ expansion. Currently fuzzy matching based completion
+ is not supported for file and directory names and
+ instead wildcard expansion is used.
pum Display the completion matches using the popup menu
in the same style as the |ins-completion-menu|.
tagfile When using CTRL-D to list matching tags, the kind of