Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

macos

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.

like image 294
iJK Avatar asked Nov 25 '09 20:11

iJK


2 Answers

This will solve this problem:

$ git config --global core.editor /usr/bin/vim
like image 112
eureka Avatar answered Sep 17 '22 08:09

eureka


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.

like image 40
Courtney Faulkner Avatar answered Sep 20 '22 08:09

Courtney Faulkner