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

Re: using gvim as editor on Windows

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Mar 6, 2010, 12:17 UTC
Message-ID
<201003061317.38422.markus.heidelberg@web.de>
In-Reply-To
<20100306073729.GN2480@ece.pdx.edu>
Tait, 2010-03-06 08:37:
Show 11 quoted lines
> > > I'd prefer to use gvim as an editor on Windows XP instead of vim...
> > >     start "dummy" /b /wait "C:\Program Files\Vim\vim72\gvim.exe" %*
> >
> > Use the -f (stay in the foreground) flag.  I haven't tried this in
> > Windows, but that's how I've used it in Linux.
> >
> > [core]
> >     editor = gvim -f
> 
> 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.

Markus
Previous: TaitNext: Tait
Message 4 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.