diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-05 14:44:31 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-06-05 15:08:31 +0800 |
commit | 164338330b74e6e7c7cbb61e49c810dd82599236 (patch) | |
tree | 9a1bdf0155253099d8ddaacf3ac01f13aed6234a /runtime/doc | |
parent | f69937fdbd162630c35e119e67bbbf052558c0e0 (diff) | |
download | rneovim-164338330b74e6e7c7cbb61e49c810dd82599236.tar.gz rneovim-164338330b74e6e7c7cbb61e49c810dd82599236.tar.bz2 rneovim-164338330b74e6e7c7cbb61e49c810dd82599236.zip |
vim-patch:9.1.0463: no fuzzy-matching support for insert-completion
Problem: no fuzzy-matching support for insert-completion
Solution: enable insert-mode completion with fuzzy-matching
using :set completopt+=fuzzy (glepnir).
closes: vim/vim#14878
https://github.com/vim/vim/commit/a218cc6cdabae1113647b817c4eefc2b60a6902f
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/options.txt | 11 | ||||
-rw-r--r-- | runtime/doc/pattern.txt | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 20e825329a..e9fa53ca97 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1517,6 +1517,10 @@ A jump table for the options with a short description can be found at |Q_op|. completion in the preview window. Only works in combination with "menu" or "menuone". + popup Show extra information about the currently selected + completion in a popup window. Only works in combination + with "menu" or "menuone". Overrides "preview". + noinsert Do not insert any text for a match until the user selects a match from the menu. Only works in combination with "menu" or "menuone". No effect if "longest" is present. @@ -1525,9 +1529,10 @@ A jump table for the options with a short description can be found at |Q_op|. select one from the menu. Only works in combination with "menu" or "menuone". - popup Show extra information about the currently selected - completion in a popup window. Only works in combination - with "menu" or "menuone". Overrides "preview". + fuzzy Enable |fuzzy-matching| for completion candidates. This + allows for more flexible and intuitive matching, where + characters can be skipped and matches can be found even + if the exact sequence is not typed. *'completeslash'* *'csl'* 'completeslash' 'csl' string (default "") diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index 1ef182127c..67ef769203 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1494,5 +1494,7 @@ the matching positions and the fuzzy match scores. The "f" flag of `:vimgrep` enables fuzzy matching. +To enable fuzzy matching for |ins-completion|, add the "fuzzy" value to the +'completeopt' option. vim:tw=78:ts=8:noet:ft=help:norl: |