I\'m using Red Hat Enterprise Linux 5, and I want to set the vim editor to edit the crontab file.
If I run echo $EDITOR, I get vim. But when I run c
echo $EDITOR
c
export EDITOR=vim worked for me
export EDITOR=vim