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
This worked for me :
EDITOR="/usr/bin/vim" export EDITOR
Add this to ~/.bash_profile or ~/.bashrc to enable this for current user.