问题:
I would prefer to write my commit messages in Vim, but it is opening them in Emacs. 我更愿意在Vim中编写我的提交消息,但是它正在Emacs中打开它们。
How do I configure Git to always use Vim? 如何配置Git始终使用Vim? Note that I want to do this globally, not just for a single project. 请注意,我要全局执行此操作,而不仅仅是针对单个项目。
解决方案:
参考一: https://stackoom.com/question/AtXx/如何使Git使用我选择的编辑器进行提交参考二: https://oldbug.net/q/AtXx/How-do-I-make-Git-use-the-editor-of-my-choice-for-commits
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4462961