将git commit的默认编辑器从nano转为vim 修改系统的配置 git config --global core.editor vim 针对 git 项目修改 .git/config core 中添加 editor=vim