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:
E319: Sorry, the command is not available in this version: sign define ErlangError text=>> texthl=Error
E319: Sorry, the command is not available in this version: sign define ErlangWarning text=>> texthl=Todo
Wrap those two lines in:
and the error goes away.
I think this is related to the Vim version, not to if Vim is running with GUI or on CLI mode. The Vim that comes with OS X is 7.2, Vimerl requires version 7.3 in order to work syntax checking. Testing with MacVim (version 7.3) on Snow Leopard, Vimerl works well with GUI and on CLI.
I am going to disable syntax checking when the Vim version is below 7.3, that should hide the errors.
Fix #17: disable syntax checking when Vim older than 7.3