vim --clean:set completeopt=menu,popup,fuzzyset completeopt=menu,popup,fuzzy
set autoindent shiftwidth=4 softtabstop=-1 expandtab
set diffopt+=hiddenoff,algorithm:histogram,linematch:100
Goset diff<C-x><C-l>Line set diffopt+=hiddenoff,algorithm:histogram,linematch:100 should be completed/inserted.
However the line set autoindent shiftwidth=4 softtabstop=-1 expandtab is completed instead.
https://asciinema.org/a/NwEnsx96KHriigxj
Fuzzy matching itself is correct, the best candidate is on the top of the completion list, however the line completion selects the last completion menu item, basically the worst matching.
9.2.449
debian13, bash
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
The behavior with completeopt=menu,popup,nearest is also strange. With that the first selected item is the nearest one, but pressing Ctrl-L again selects the farthest one.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Also, :h i_CTRL-X_CTRL-L explicitly says "search backwards":
*i_CTRL-X_CTRL-L*
CTRL-X CTRL-L Search backwards for a line that starts with the
same characters as those in the current line before
the cursor. Indent is ignored. The matching line is
inserted in front of the cursor.
It's not entirely clear how exactly this should interact with fuzzy or nearest.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
It's not entirely clear how exactly this should interact with
fuzzyornearest.
Indeed. I think line completion should
fuzzy or nearestfuzzy or nearest is in completeopt.—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()