How to Set “nano” or “vim” as the Default crontab Editor on Raspberry Pi

If you need to change the default text editor used when opening the crontab file, you need to use the VISUAL environment variable.

To set nano as the text editor for the crontab file, type:

export VISUAL=nano; crontab -e

while to set vim as the text editor, type:

export VISUAL=vim; crontab -e

I hope this helps

Enjoy!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top