Q:

Why do I get a warning after I say "git commit ."

I get the error below after I run "git commit ."
CSApprox needs gui support - not loading.
  See :help |csapprox-+gui| for possible workarounds.
Error detected while processing /Users/{username}/.vim/plugin/syntastic.vim:
line   94:
E319: Sorry, the command is not available in this version: sign define SyntasticError text=>> texthl=error
line   95:
E319: Sorry, the command is not available in this version: sign define SyntasticWarning text=>> texthl=todo
Press ENTER or type command to continue
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.

Any ideas why this might be happening? I am on a mac.
Thanks for your help. 

A:

This will solve this problem:
$ git config --global core.editor /usr/bin/vim

A:

It looks like your git editor is not set and vi has a messed up plugin or something on your mac. Try using the -m "comment here" paramter on your commit.
I would suggest mv ~/.vim ~/.vimbak and try running vi again.

A:

First off, are you sure you want to be doing git commit . ?  git commit is usually what you want.
The error messages are coming from you editor. It looks like git is trying to invoke vi, but there are settings in something like your .vimrc which aren't supported by the command line vi that you are using.
What happens when you invoke vi from your command line?
If you do not want to use vi as your commit editor, you can use the GIT_EDITOR environment variable to cause git invoke a different editor. You need to make sure that the editor runs as a foreground process, though, so that git knows when you've finished editing your message. Some editors can be invoked with a launcher script to help with this as it's common for editors (especially in Mac OS X) launch as a background process when invoked from a terminal.

