将git commit的默认编辑器从nano转为vim

修改系统的配置

git config --global core.editor vim

针对 git 项目修改

.git/config core 中添加 editor=vim

原文地址:https://www.cnblogs.com/everfight/p/git.html