git设置默认编辑为vim

f you want to set the editor only for Git, do either (you don’t need both):

  • Set core.editor in your Git config: git config --global core.editor "vim"
  • Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim
posted @ 2017-05-08 19:37  Entropy_lxl  阅读(15357)  评论(0编辑  收藏  举报