Lately I have been messing around with cron jobs and apparently I used this utility called crontab. But on various servers I found that crontab opens the file in different editors. Some use pico, while others use nano.
However, since I am comfortable using vi editor , so I found a way to make the default editor as vi
EDITOR=vi; export EDITOR
The above command is valid as long as your session is valid in the command line. That also saves you from messing up some one else’s settings. But if you want it to be permanent, then you should paste the above line into the .bashrc file.
Some web hosting services also support this, but you need to check if your settings get stored in .bashrc or no.
Hope that helps.
Stay Digified !!
Sachin Khosla