diff --git a/.bashrc b/.bashrc index c2b3a1d..8720fe0 100755 --- a/.bashrc +++ b/.bashrc @@ -40,8 +40,8 @@ getkey() { #-------------------------------------------------------------------------------- # The best editor #-------------------------------------------------------------------------------- -alias vi=vim -export EDITOR=vim +[[ -x $(which vim 2>/dev/null) ]] && alias vi=vim +export EDITOR=vi #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------