Skip to main content

Setting VIM as The Default Editor in Fedora Workstation

Since Fedora 33 Workstation, vim was replaced with nano as the default editor. To change it back:

[david@fedora ~]$ sudo dnf install -y vim-default-editor --allow-erasing

To change back to nano as the default editor, run the following command:

[david@fedora ~]$ sudo dnf install -y nano-default-editor --allow-erasing

There is a default-editor metapackage that gets installed, to allow upgrades to happen when neither vim nor nano is installed.