git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sebastian@CoLi.Uni-SB.DE
To: git@vger.kernel.org
Subject: git refuses to work with gvim
Date: Mon, 12 Oct 2009 13:43:12 +0200	[thread overview]
Message-ID: <20091012134312.236d250e@gzip.coli.uni-saarland.de> (raw)

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

             reply	other threads:[~2009-10-12 12:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 11:43 sebastian [this message]
2009-10-12 12:43 ` git refuses to work with gvim 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
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=20091012134312.236d250e@gzip.coli.uni-saarland.de \
    --to=sebastian@coli.uni-sb.de \
    --cc=git@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).