Skip to content

Commit 33fbfe0

Browse files
girishjichrisbra
authored andcommitted
patch 9.1.1930: completion: 'completefuzzycollect' is too obscure
Problem: completion: 'completefuzzycollect' option is too obscure Solution: Deprecate the option, but don't error out for existing scripts, behave like 'completefuzzycollect' is set when fuzzy completion is enabled (Girish Palya). fixes: #18498 closes: #18788 Signed-off-by: Girish Palya <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 25a736e commit 33fbfe0

File tree

10 files changed

+105
-120
lines changed

10 files changed

+105
-120
lines changed

runtime/doc/options.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Nov 25
1+
*options.txt* For Vim version 9.1. Last change: 2025 Nov 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2211,11 +2211,13 @@ A jump table for the options with a short description can be found at |Q_op|.
22112211
*'completefuzzycollect'* *'cfc'*
22122212
'completefuzzycollect' 'cfc' string (default: empty)
22132213
global
2214-
A comma-separated list of strings to enable fuzzy collection for
2215-
specific |ins-completion| modes, affecting how matches are gathered
2216-
during completion. For specified modes, fuzzy matching is used to
2217-
find completion candidates instead of the standard prefix-based
2218-
matching. This option can contain the following values:
2214+
DEPRECATED: This option is no longer used; changing it has no effect.
2215+
When 'completeopt' contains "fuzzy", Vim will internally use the
2216+
equivalent of:
2217+
"keyword,files,whole_line"
2218+
2219+
The values below are kept for compatibility and for scripts that
2220+
may read this option:
22192221

22202222
keyword keywords in the current file |i_CTRL-X_CTRL-N|
22212223
keywords with flags ".", "w", |i_CTRL-N| |i_CTRL-P|
@@ -2226,10 +2228,6 @@ A jump table for the options with a short description can be found at |Q_op|.
22262228

22272229
whole_line whole lines |i_CTRL-X_CTRL-L|
22282230

2229-
When using the 'completeopt' "longest" option value, fuzzy collection
2230-
can identify the longest common string among the best fuzzy matches
2231-
and insert it automatically.
2232-
22332231
*'completeitemalign'* *'cia'*
22342232
'completeitemalign' 'cia' string (default: "abbr,kind,menu")
22352233
global

runtime/doc/version9.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*version9.txt* For Vim version 9.1. Last change: 2025 Nov 20
1+
*version9.txt* For Vim version 9.1. Last change: 2025 Nov 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -41878,8 +41878,6 @@ Options: ~
4187841878
'autocompletetimeout' initial decay timeout for autocompletion algorithm
4187941879
'chistory' Size of the quickfix stack |quickfix-stack|
4188041880
'clipmethod' How to access the clipboard
41881-
'completefuzzycollect' Enable fuzzy collection of candidates for (some)
41882-
|ins-completion| modes
4188341881
'completeitemalign' Order of |complete-items| in Insert mode completion
4188441882
popup
4188541883
'completetimeout' initial decay timeout for CTRL-N and CTRL-P

runtime/optwin.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" These commands create the option window.
22
"
33
" Maintainer: The Vim Project <https://github.com/vim/vim>
4-
" Last Change: 2025 Nov 20
4+
" Last Change: 2025 Nov 26
55
" Former Maintainer: Bram Moolenaar <[email protected]>
66

77
" If there already is an option window, jump to that one.
@@ -890,8 +890,6 @@ if has("insert_expand")
890890
call <SID>OptionL("cot")
891891
call <SID>AddOption("completeitemalign", gettext(" \npopup menu item align order"))
892892
call <SID>OptionG("cia", &cia)
893-
call <SID>AddOption("completefuzzycollect", gettext(" \nuse fuzzy collection for specific completion modes"))
894-
call <SID>OptionL("cfc")
895893
if exists("+completepopup")
896894
call <SID>AddOption("completepopup", gettext("options for the Insert mode completion info popup"))
897895
call <SID>OptionG("cpp", &cpp)

runtime/syntax/generator/gen_syntax_vim.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file generator
22
" Language: Vim script
33
" Maintainer: Hirohito Higashi (h_east)
4-
" Last Change: 2025 Nov 21
4+
" Last Change: 2025 Nov 26
55

66
let s:keepcpo= &cpo
77
set cpo&vim
@@ -31,6 +31,9 @@ function s:parse_vim_option(opt, missing_opt, term_out_code)
3131

3232
for line in getline(1, line('$'))
3333
let list = matchlist(line, '^\s*{\s*"\(\w\+\)"\s*,\s*\%("\(\w\+\)"\|NULL\)\s*,\s*\%([^,]*\(P_BOOL\)[^,]*\|[^,]*\)\s*,\s*\([^,]*NULL\)\?.*')
34+
if list[1] == 'completefuzzycollect'
35+
continue
36+
endif
3437
let item.name = list[1]
3538
let item.short_name = list[2]
3639
let item.is_bool = empty(list[3]) ? 0 : 1

runtime/syntax/vim.vim

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)