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

git refuses to work with gvim

From
Ssebastian@coli.uni-sb.de <sebastian@coli.uni-sb.de>
Date
Oct 12, 2009, 11:43 UTC
Message-ID
<20091012134312.236d250e@gzip.coli.uni-saarland.de>

Hi, a few days ago I decided to switch from vim to gvim. To make use of this in most cases I added :gui to my .vimrc which should make most applications automatically switch to use gvim if they used the vim command before.

But git seems to have problems with this. If I do now a "git commit something" not the gui is opened but the console-version of vim. I could live with that for git but if I now type some commit-message in the console-version and do :x or :wq I get an error-message:

# git commit something fatal: no commit message? aborting commit. #

Also

# EDITOR=gvim git commit something fatal: no commit message? aborting commit. #

shows the same error.

Removing :gui from my .vimrc makes git behave normally again. I don't know what the problem here is: vim or git or both toghether?

I already saw screenshots of people using git with gvim. So there is a way to make them work together but what am I missing?

OS: Debian Lenny
vim: 7.1
git: 1.5.6.5
greetings
Next: Matthieu Moy
Message 1 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.