add EDITOR=`which vim` into .bash_profile