GIT_EDITOR不工作的MacVim [英] GIT_EDITOR not working with macvim

查看:141
本文介绍了GIT_EDITOR不工作的MacVim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在我的〜/ .bashrc

This is what I have in my ~/.bashrc

export GIT_EDITOR='/Applications/MacVim.app/Contents/MacOS/Vim -g '

当我发出

git commit

然后我得到一个的MacVim编辑器,但在命令行中我看到这则消息

then I get a macvim editor but on the command line I see this message

$ git commit
Aborting commit due to empty commit message.

如果我用变化GIT_EDITOR使用TextMate的话事情做工精细

If I use change GIT_EDITOR to use textmate then things work fine

export GIT_EDITOR='/usr/local/bin/mate -w'

我不希望使用TextMate的。我想使用的MacVim。我使用Mac和使用bash。

I don't want to use textmate. I want to use macvim. I am using mac and use bash.

推荐答案

您需要提供 -f 选项,Vim来确保它没有背景本身。

You need to supply the -f option to vim to ensure that it doesn't background itself.

这篇关于GIT_EDITOR不工作的MacVim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆