Change default editor to vim
It appears that the default editor in Fedora comes up as nano. For those of y’all that prefer vim – here is how to switch that:
For systemctl edit
For a single user:
echo "export SYSTEMD_EDITOR=vim" >> ~/.bashrc
Systemwide:
echo "export SYSTEMD_EDITOR=vim" >> /etc/bashrc
For crontab
For a single user:
echo "export VISUAL=vim" >> ~/.bashrc
Systemwide:
echo "export VISUAL=vim" >> /etc/bashrc
Applicable to Fedora 32 and higher