Skip to content

Instantly share code, notes, and snippets.

@marcransome
Last active July 24, 2017 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcransome/aff2b6e2012da7d6e762ea9fe8405ef4 to your computer and use it in GitHub Desktop.
Save marcransome/aff2b6e2012da7d6e762ea9fe8405ef4 to your computer and use it in GitHub Desktop.
git commit error using vim 8.0.740+

Error:

$ git commit
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.

Fix:

$ git config --global core.editor vim -f

Reference:

-f         Foreground.   For the GUI version, Vim will not fork and detach from the shell it was started in.
           On the Amiga, Vim is not restarted to open a new window.  This option should be used when Vim  is
           executed  by  a  program that will wait for the edit session to finish (e.g. mail).  On the Amiga
           the ":sh" and ":!" commands will not work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment