我更愿意在Vim中编写提交消息,但它在Emacs中打开它们.
如何配置Git以始终使用Vim?请注意,我想在全球范围内执行此操作,而不仅仅是针对单个项目.
我试图在我的Mac Os Snow Leopard 10.6.7上设置git 但是我做了一些错误......
这时我有以下警告:
$ git config --global core.editor
EDITOR=/usr/bin/vim
error: More than one value for the key core.editor: mate
$ git config --global core.editor open
warning: core.editor has multiple values
Run Code Online (Sandbox Code Playgroud)
我怎么解决这个问题?而且,大多数情况下,我如何设置core.editor
TextEdit并使其工作?
PS:我已经读过这个问题.