Make vi default editor for SQL*Plus
vi $ORACLE_HOME/sqlplus/admin/glogin.sql 

Add the following line:

define_editor='vi'

Save the file