If you want to update the default editor of cron tab, you’ll have to update your .bashrc file.

Updating .bashrc

Add the following line to your .bashrc

export VISUAL="vim"

Reload the configuration

To reload without rebooting your machine execute the following command:

$ source ~/.bashrc