Bug 2439657 - /usr/bin/vi fails to call vim if installed after latest upgrade
Summary: /usr/bin/vi fails to call vim if installed after latest upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 42
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2439734 2440379 2440595 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-13 09:01 UTC by Kevin Wolf
Modified: 2026-02-20 01:17 UTC (History)
6 users (show)

Fixed In Version: vim-9.1.2146-2.fc45 vim-9.1.2146-2.fc44 vim-9.1.2146-2.fc43 vim-9.1.2146-2.fc42
Clone Of:
Environment:
Last Closed: 2026-02-16 19:03:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kevin Wolf 2026-02-13 09:01:22 UTC
Yesterday, I received the upgrade from vim-minimal-2:9.1.2114-1.fc42.x86_64 to vim-minimal-2:9.1.2128-2.fc42.x86_64.

In version 9.1.2114-1 and before, /usr/bin/vi was a shell script that called /usr/bin/vim if present and /usr/libexec/vi only as a fallback, which was removed without a replacement apparently in 9.1.2114-2.

This broke behaviour that has been consistently present (even if implemented in different ways) since at least 2004 based on my reading of the spec file. Now running "vi" on the shell gives me the vim-minimal binary instead of the regular vim from the vim-enhanced package. This really messes with my muscle memory, and I can't be the only one.

Please restore the traditional behaviour.

Reproducible: Always

Comment 1 Zdenek Dohnal 2026-02-16 15:06:54 UTC
Explained via PM - the change was done because vi is required to be binary for working with sudo option NOEXEC, and other solutions do not provide complete coverage:

- alternatives are now fixed to work under immutable OS, but it is explicitly mentioned vi->vim alias is incorrect use of alternatives due plugin compatibility and feature set - https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/#_usage_within_fedora - so no use of alternatives there
- alias configuration requires shell reload and do not work under sudo

So per Kevin's request I will include the shell alias, but it will need shell reload to start working and it won't work under sudo environment.

Comment 2 Fedora Update System 2026-02-16 17:43:16 UTC
FEDORA-2026-828de4864b (vim-9.1.2146-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-828de4864b

Comment 3 Fedora Update System 2026-02-16 19:03:44 UTC
FEDORA-2026-828de4864b (vim-9.1.2146-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Zdenek Dohnal 2026-02-17 07:39:42 UTC
FTR - I will fix this in other Fedoras as well - it just took like 2 hours to build the package in rawhide yesterday, because of lack of s390x and Anubis cancelling my watch-task like 15 times as AI agent protection.

Comment 5 Zdenek Dohnal 2026-02-17 07:52:05 UTC
*** Bug 2439734 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2026-02-17 07:55:30 UTC
FEDORA-2026-f7eefb9f6e (vim-9.1.2146-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f7eefb9f6e

Comment 7 Fedora Update System 2026-02-17 14:24:44 UTC
FEDORA-2026-f7eefb9f6e (vim-9.1.2146-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Zdenek Dohnal 2026-02-18 08:25:58 UTC
*** Bug 2440379 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Update System 2026-02-18 08:45:45 UTC
FEDORA-2026-36e120e597 (vim-9.1.2146-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-36e120e597

Comment 10 Fedora Update System 2026-02-18 11:41:16 UTC
FEDORA-2026-85c085b59f (vim-9.1.2146-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-85c085b59f

Comment 11 Fedora Update System 2026-02-19 01:13:45 UTC
FEDORA-2026-36e120e597 (vim-9.1.2146-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2026-02-19 02:21:34 UTC
FEDORA-2026-85c085b59f has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-85c085b59f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-85c085b59f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Zdenek Dohnal 2026-02-19 08:06:37 UTC
*** Bug 2440595 has been marked as a duplicate of this bug. ***

Comment 14 Fedora Update System 2026-02-20 01:17:27 UTC
FEDORA-2026-85c085b59f (vim-9.1.2146-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.