[vim/vim] Add E1575 error for deprecated options (PR #19768)

8 views
Skip to first unread message

mattn

unread,
Mar 20, 2026, 5:50:37 AMMar 20
to vim/vim, Subscribed

Add e_option_is_deprecated_use_str_instead error message (E1575) and apply it to 'completefuzzycollect' and 'wincolor' options.

Setting these deprecated options to a non-empty value now produces an error directing users to the replacement option ('completeopt' and 'winhighlight' respectively). Setting to empty is still allowed for backwards compatibility with scripts that reset these options.

The caller (did_set_string_option) handles restoring the old value when an error is returned, so the callback only needs to return the error.

Update all tests to use 'winhighlight' instead of 'wincolor'.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19768

Commit Summary

  • ca553ef Add E1575 error for deprecated options

File Changes

(14 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19768@github.com>

Christian Brabandt

unread,
Mar 20, 2026, 6:18:22 PMMar 20
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19768)

This will be a drastic change in behaviour. Until now, even so other options have been marked as deprecated or obsoleted Vim would not throw an error and still accept it (e.g. there are the 'textauto' and 'textmode' options that are also marked deprecated, so should be set there as well, there are some values of the cryptmethod option that could be marked as well).

I won't merge without confirmation for other maintainers, because this can be quite annoying (possibly for the right reasons). ping @dkearns @yegappan @k-takata for comments please. @zeertzjq how are your handling this over at neovim?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19768/c4101229848@github.com>

zeertzjq

unread,
Mar 20, 2026, 7:42:09 PMMar 20
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#19768)

how are your handling this over at neovim?

IIRC this has changed back and forth for quite a bit. Some related commits:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19768/c4101472813@github.com>

dkearns

unread,
Mar 22, 2026, 12:47:13 AMMar 22
to vim/vim, Subscribed
dkearns left a comment (vim/vim#19768)

@mattn, thanks for trying to sort this out.

It would be good to have a path to removal for these deprecated features. However, I think it would be better to do this over several releases and start with a warning that makes a best effort attempt to allow the deprecated option to function in parallel with the replacement as has been done in the past. This can be a bit confusing but I suspect most users don't even notice.

'wincolor' is quite heavily used and having errors generated from plugin use will probably generate a lot of complaints.

With regards to this specific PR, I'm not sure I understand why resetting the values to the default is handled differently? I don't think setting the option to the default value is inherently different.

set wincolor=Black " => error
set wincolor= " => functional with no error
set wincolor& " => functional with no error


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19768/c4105487461@github.com>

mattn

unread,
May 18, 2026, 8:01:21 PM (6 hours ago) May 18
to vim/vim, Subscribed

Closed #19768.


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.Message ID: <vim/vim/pull/19768/issue_event/25682409016@github.com>

mattn

unread,
May 18, 2026, 8:01:21 PM (6 hours ago) May 18
to vim/vim, Subscribed
mattn left a comment (vim/vim#19768)

There are only a few deprecated options so far, and we haven't found any compelling reason to force their removal. At most, it will just be a hassle for the maintainers. We'll deal with it when the need arises.


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.Message ID: <vim/vim/pull/19768/c4483265996@github.com>

Reply all
Reply to author
Forward
0 new messages