[vim/vim] completeopt=fuzzy causes source priority to become ineffective (Issue #20856)
Mao-Yining (Vim Github Repository) <[email protected]> Mon, 27 Jul 2026 08:15:01 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/[email protected]> |
mao-yining created an issue (vim/vim#20856)
`vim --clean`
```vim
vim9script
set autocomplete
set completeopt=fuzzy
set complete=FF1,FF2
def g:F1(findstart: bool, _): any
if findstart
return 0
endif
return ['ad', 'ae', 'af']
enddef
def g:F2(findstart: bool, _): any
if findstart
return 0
endif
return ['a', 'ab', 'ac']
enddef
```
Type 'a'. Now 'a' is the first, but it comes from the second source.
I hope the fuzzy sort only sort items in the source, and respect the priority of the source.
CC: @glepnir @girishji I am not sure whether this is a bug or feature request.
---
`nosort` will disable all sorts which is not the ideal solution for this problem.
Thanks.
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/20856
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/issues/[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20856%40github.com.