diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 14:35:05 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 15:55:58 +0800 |
| commit | 441d13eae5569be2856a8d17b87f0897b85f4ad8 (patch) | |
| tree | 2562dddfa8bb2ac2fd7a3638fa817ac1ca1b9d71 /runtime/doc/map.txt | |
| parent | 2093e574c6c934a718f96d0a173aa965d3958a8b (diff) | |
| download | rneovim-441d13eae5569be2856a8d17b87f0897b85f4ad8.tar.gz rneovim-441d13eae5569be2856a8d17b87f0897b85f4ad8.tar.bz2 rneovim-441d13eae5569be2856a8d17b87f0897b85f4ad8.zip | |
vim-patch:8.2.4482: no fuzzy cmdline completion for user defined completion
Problem: No fuzzy cmdline completion for user defined completion.
Solution: Add fuzzy completion for user defined completion. (Yegappan
Lakshmanan, closes vim/vim#9858)
https://github.com/vim/vim/commit/afd4ae35d66b2e7732eceb5ad9f6b4ece6b7c64c
Cherry-pick related docs from Vim runtime.
N/A patches for version.c:
vim-patch:8.2.4485: compiler warning for uninitialized variable
vim-patch:8.2.4732: duplicate code to free fuzzy matches
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime/doc/map.txt')
| -rw-r--r-- | runtime/doc/map.txt | 8 |
1 files changed, 5 insertions, 3 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> |