To see what is the current EDITOR.
# set | grep EDITOR EDITOR=/bin/nano # which vi (shows the full path of (shell) command vi ) /usr/bin/vi # export EDITOR=/usr/bin/vi verify the current EDITOR # set | grep EDITOR EDITOR=/usr/bin/vi
-- Regards, Mubbashir