From: Joshua Roys <roysjosh@gmail.com>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: sebastian@CoLi.Uni-SB.DE, git@vger.kernel.org
Subject: Re: git refuses to work with gvim
Date: Mon, 12 Oct 2009 14:29:43 -0400 [thread overview]
Message-ID: <4AD37597.3010807@gmail.com> (raw)
In-Reply-To: <vpq8wfgg4u1.fsf@bauges.imag.fr>
On 10/12/2009 08:43 AM, Matthieu Moy wrote:
> sebastian@CoLi.Uni-SB.DE writes:
>
>> # git commit something
>> fatal: no commit message? aborting commit.
>> #
>
> The problem is that gvim returns immediately, and lets the window
> opened (try it in a terminal, "gvim foo.txt" returns immediately). Git
> expects the commit message to be written and saved when $EDITOR
> returns.
>
> A quick search for "wait" in the man pages tells me that
>
> GIT_EDITOR='gvim -f' git commit
>
> works.
>
> (BTW, this is in no way specific to Git, 99% applications calling
> $EDITOR will expect the same behavior)
>
Hello,
Also, a :help nofork leads to gui-fork and guioptions, which tells you
that you can add the following to .vimrc (not .gvimrc, see :help go-f):
set guioptions+=f
--
Joshua Roys
next prev parent reply other threads:[~2009-10-12 18:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 11:43 git refuses to work with gvim sebastian
2009-10-12 12:43 ` Matthieu Moy
2009-10-12 14:13 ` Shawn O. Pearce
2009-10-12 14:20 ` Felipe Contreras
2009-10-12 14:25 ` Shawn O. Pearce
2009-10-12 14:36 ` Felipe Contreras
2009-10-12 18:29 ` Joshua Roys [this message]
2009-10-12 17:37 ` Markus Heidelberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AD37597.3010807@gmail.com \
--to=roysjosh@gmail.com \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=sebastian@CoLi.Uni-SB.DE \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.