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

Re: using gvim as editor on Windows

From
TTait <git.git@t41t.com>
Date
Mar 8, 2010, 18:54 UTC
Message-ID
<20100308185439.GO2480@ece.pdx.edu>
In-Reply-To
<201003061317.38422.markus.heidelberg@web.de>
Show 6 quoted lines
> > On Windows, gvim -f is basically a shortcut for the start invocation I
> > pasted above.
>
> Not necessarily. You can avoid using the .bat wrappers from C:\Windows,
> which cause the problem, but use gvim.exe directly by setting your PATH
> appropriately. It will also work for git-difftool.
I was hoping for a little more life in this thread.

Does calling the .exe directly work for you? If I call gvim.exe directly (with or without -f -- it doesn't matter), it opens a new file called $@. After quitting, the commit is aborted for lack of a commit message. I can do an ugly work-around by making core.editor "gvim.exe -f $@" but then gvim opens two buffers, one for the commit message and another for the literal $@.

With rebase -i, calling the executable directly (with or without -f) works to open the commit list. Rebase -i with $@ in the setting fails. It appears the filename is not quoted correctly and vim is opening multiple buffers with various components of the path name as filenames.

The problem seems to be unique to me, so I'll find some time to look at what rebase and/or commit are doing wrong.

Tait
Previous: Markus HeidelbergNext: Markus Heidelberg
Message 5 of 10 in “using gvim as editor on Windows”
  1. TaitMar 6, 2010
  2. Jacob HelwigMar 6, 2010
  3. TaitMar 6, 2010
  4. Markus HeidelbergMar 6, 2010
  5. TaitMar 8, 2010
  6. Markus HeidelbergMar 8, 2010
  7. TaitMar 9, 2010
  8. Junio C HamanoMar 9, 2010
  9. TaitMar 11, 2010
  10. Johannes SixtMar 11, 2010

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.