Since the very first moment I upgrade from Fedora 41 to Fedora 42 I notice a good and a bad thing.
The good one was an improvement in performance on the same hardware, maybe it’s just an illusion but that was the impression.
The bad one is Fedora 42 changes the default system editor to Nano. I look for a solution and I found quite a large number of fast and dirty solutions, such as include this line in your profile;$ echo "export EDITOR=/usr/bin/vim" >> ~/.bashrc
I didn’t like those solutions because they all attack the “effect” but not the “cause” and they didn’t seems to me a canonical solution. I was pretty sure that if Fedora decides to change the default editor there must be a way to revert it… and it was.
The default editor was config via the file: /etc/profile.d/nano-default-editor.sh . So I check what package owns that file via: rpm -qf /etc/profile.d/nano-default-editor.sh and that file belongs to nano-default-editor.noarch.
Since the very first moment I upgrade from Fedora 41 to Fedora 42 I notice a good and a bad thing.
The good one was an improvement in performance on the same hardware, maybe it’s just an illusion but that was the impression.
The bad one is Fedora 42 changes the default system editor to Nano. I look for a solution and I found quite a large number of fast and dirty solutions, such as include this line in your profile;
$ echo “export EDITOR=/usr/bin/vim” >> ~/.bashrc
I didn’t like those solutions because they all attack the “effect” but not the “cause” and they seems to me a canonical solution. I was pretty sure that if Fedora decides to change the default editor there must be a way to revert it… and it was.
The default editor was config via the file: /etc/profile.d/nano-default-editor.sh . So I check what package owns that file via: rpm -qf /etc/profile.d/nano-default-editor.sh and that file belongs to nano-default-editor.noarch.
It was obvious to me that there would be available a package named vim-default-editor.noarch. I tried an simple installation and dnf asks you if you agree to remove the nano-default package, you just consented and since them Vi rules again on the system.