1,编辑.profile文件,增加  EDITOR=vi;export EDITOR

2,直接在命令行输入 EDITOR=vi;export EDITOR