git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git refuses to work with gvim

From
JRJoshua Roys <roysjosh@gmail.com>
Date
Oct 12, 2009, 18:29 UTC
Message-ID
<4AD37597.3010807@gmail.com>
In-Reply-To
<vpq8wfgg4u1.fsf@bauges.imag.fr>
On 10/12/2009 08:43 AM, Matthieu Moy wrote:
Show 20 quoted lines
> 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

Previous: Felipe ContrerasNext: Markus Heidelberg
Message 7 of 8 in “git refuses to work with gvim”
  1. sebastian@coli.uni-sb.deOct 12, 2009
  2. Matthieu MoyOct 12, 2009
  3. Shawn O. PearceOct 12, 2009
  4. Felipe ContrerasOct 12, 2009
  5. Shawn O. PearceOct 12, 2009
  6. Felipe ContrerasOct 12, 2009
  7. Joshua RoysOct 12, 2009
  8. Markus HeidelbergOct 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.