set export EDITOR=vi export FCEDIT=vi in your .bashrc or .profile 在$ORACLE_HOME/sqlplus/admin目录下有个glogin.sql文件,将define _editor=vi添加到文件中就可以了