-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
Description
Steps to reproduce
Execute:
echo matchfuzzy(['BindTerminal', 'terminal'], 'term')The output is ['BindTerminal', 'terminal']. Or, in the command line:
vim --cleanset wildoptions=fuzzy:command BindTerminal :<cr>:trm<TAB>
The command line is expanded to BindTerminal. This behaviour has started with patch v9.1.1046.
Expected behaviour
In the examples above, I would expect that terminal is the first match, as it matches a prefix of the text (case-sensitively, btw).
Even ignoring the position of the match, term or trm is intuitively “more similar” (e.g., in terms of edit distance) to terminal than to BindTerminal.
Version of Vim
9.1.1455
Environment
macOS
Apple Terminal
xterm-256color
ZSH 5.9