首页 > 技术文章 > git设置默认编辑为vim

lixiaolun 2017-05-08 19:37 原文

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

推荐阅读