From 8395fa33e1171d8aef6b161ab5df9feca0501260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viorel-C=C4=83t=C4=83lin=20R=C4=83pi=C8=9Beanu?= Date: Wed, 4 Feb 2026 00:20:24 +0200 Subject: [PATCH] Install the vi to vim compatibility package A number of installed applications like visudo, vipw and vigr need vi to work as expected. This commit installs the Arch's vi to vim compatibility package so that everything will work as expected after a fresh installation. Fixes #497 --- mkosi.conf.d/10-packages-cli.conf | 1 + mkosi.extra/usr/lib/command-not-found-handler.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mkosi.conf.d/10-packages-cli.conf b/mkosi.conf.d/10-packages-cli.conf index 02177d5..6acf09e 100644 --- a/mkosi.conf.d/10-packages-cli.conf +++ b/mkosi.conf.d/10-packages-cli.conf @@ -14,6 +14,7 @@ Packages=alsa-utils # alsamixer and other useful audio debugging tools desktop-file-utils # desktop-file-validate and related useful tools drm-info # for debugging KWin and other graphics issues duf + ex-vi-compat fastfetch fd fzf diff --git a/mkosi.extra/usr/lib/command-not-found-handler.py b/mkosi.extra/usr/lib/command-not-found-handler.py index ca0f186..950a887 100755 --- a/mkosi.extra/usr/lib/command-not-found-handler.py +++ b/mkosi.extra/usr/lib/command-not-found-handler.py @@ -23,8 +23,7 @@ known_alternatives = { "nslookup" : "resolvectl query", "route" : "ip route", "service" :"systemctl", - "traceroute" : "tracepath", - "vi" : "vim -u NONE -C" + "traceroute" : "tracepath" } unsupported_package_managers = [