diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2022-02-20 00:18:15 +0000 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 14:01:10 +0800 |
commit | 6734dd250355f8621a710d59c2089b38a65dbf18 (patch) | |
tree | 3d4cd1a386cd9f56b1a4f42db3ea8a9ea2bbe809 /runtime | |
parent | 34e62d387509bb3eec9aafdd9b35a6d832cfd10f (diff) | |
download | rneovim-6734dd250355f8621a710d59c2089b38a65dbf18.tar.gz rneovim-6734dd250355f8621a710d59c2089b38a65dbf18.tar.bz2 rneovim-6734dd250355f8621a710d59c2089b38a65dbf18.zip |
vim-patch:8.2.4463: completion only uses strict matching
Problem: Completion only uses strict matching.
Solution: Add the "fuzzy" item for 'wildoptions'. (Yegappan Lakshmanan,
closes vim/vim#9803)
https://github.com/vim/vim/commit/38b85cb4d7216705058708bacbc25ab90cd61595
Use MAX_FUZZY_MATCHES in fuzzy_match_str().
Omit fuzmatch_str_free() as it is only used on allocation failure.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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 |