Alex Rivera | Logout

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

Asked 2009-11-25T20:57:25.643
10

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.

Edit
Report

1 Answer

0

Looks like you're using the CSApprox vim plugin on mac. However, the mac's terminal does not support 256 colors (only 16 I believe).

You can try iTerm instead of the mac's Terminal. Watch out for memory usage though.

Also, if you go this route, tell vim that the terminal supports 256 colors by adding this to your ~/.vimrc:

set t_Co=256

If all this fails, and you don't mind the default colorscheme when using vim from the terminal, you can load the colorscheme only for MacVim (and completely remove the CSApprox plugin):

if has('gui_running')
  :colorscheme wombat
endif
answered 2009-11-25T22:06:49.723

Your Answer