In case you want to make vi your permanent editor you have to write "define _editor='vi'" into the file $ORACLE_HOME/sqlplus/admin/glogin.sql.