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
I think you might need to use the full path:
export EDITOR=/usr/bin/vim