jimenezrick/vimerl — Issue #17: Gui assumption causes OSX 10.6 vim problems
Author: wohali
Created: 2012-01-31 20:11:00+00:00
State: open

Such a simple tweak to compiler/erlang.vim that I'm not bothering forking and issuing a pull request.

On OSX 10.6, running vim from the CLI on a trivial .erl file results in the following:

Error detected while processing /Users/joant/.vim/bundle/jimenezrick-vimerl/compiler/erlang.vim:
line 34:
E319: Sorry, the command is not available in this version: sign define ErlangError text=>> texthl=Error
line 35:
E319: Sorry, the command is not available in this version: sign define ErlangWarning text=>> texthl=Todo

Wrap those two lines in:

if has('gui_running')
....
endif

and the error goes away.