Note that there are some explanatory texts on larger screens.

plurals
  1. POGit commit fails with Vim and GVim
    text
    copied!<p>When I try to do a <code>git commit -a</code>, I get a nice vim instance. I type in my message, do <code>:wq</code>, vim closes down and the terminal has the message, </p> <pre><code>Aborting commit due to empty commit message. </code></pre> <p>Pursuant to <a href="https://stackoverflow.com/questions/60278/git-commit-text-file" title="Git commit text file?">this question</a> I made sure my core.editor says "gvim" (so does the user.editor, fwiw), but I still get that error message.</p> <p>Does anyone have another idea?</p> <p><strong>Edit 1</strong>: I <em>am</em> able to commit by specifying a file. My messages are too long to reasonably use the -m option.</p> <p><strong>Edit 2:</strong></p> <pre><code>$ git config core.editor vim error: More than one value for the key core.editor: vim error: More than one value for the key core.editor: gvim </code></pre> <p><strong>Edit 3:</strong> Still having the same problem, even with core.editor sorted. Any other ideas?</p> <pre><code>$ git config core.editor gvim -f $ git commit Aborting commit due to empty commit message. </code></pre> <p><strong>Edit 4:</strong> Other error messages. This is everything I'm seeing. I excluded several from my original question because I've gotten them on many machines, none of which had problems using vim/gvim with git (except the current one). In the case shown here, core.editor is set to <code>vim -f</code>.</p> <pre><code>$ git commit (gvim:21655): GLib-WARNING **: g_set_prgname() called multiple times ** (gvim:21655): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed ** (gvim:21655): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed ** (gvim:21655): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed ** (gvim:21655): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed ** (gvim:21655): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed Aborting commit due to empty commit message. </code></pre> <p>When core.editor is set to <code>gvim -f</code> I get exactly the same error messages except the number is 21641, not 21655. When I Google one of the lines, I get no matches (I find that hard to believe, but there you are).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload