When create a cronjob in Linux or Mac, the default editor is VIM. But it is not easy and not comfortable to use VIM in the most case because it have too many hidden command shortcut key. In this case, I decide to use NANO editor instead.
To use nano as editor, it ‘s quite simple. You just need to use this code when create cronjob
env EDITOR=nano crontab -e
Now, the editor open the cronjob will be nano, you just need to type your command and save it.
It simple but sometimes it will save us a lot of time.