chrisbra / Colorizer

color hex codes and color names
547 stars 30 forks source link

Error detected while processing function Colorizer#DoColor: line ... Undefined variable: s:relstart #39

Closed mantislin closed 9 years ago

mantislin commented 9 years ago

When I toggle ColorHighlight with :ColorHighlight in vim running in Windows Command Prompt or PowerShell, error occurred:

Error detected while processing function Colorizer#DoColor:
line  137:
E121: Undefined variable: s:relstart
E116: Invalid arguments for function s:Reltime(s:relstart)
E15: Invalid expression: s:Reltime(s:relstart)
Error detected while processing function Colorizer#DoColor:
line  137:
E121: Undefined variable: s:relstart
Press ENTER or type command to continue
Error detected while processing function Colorizer#DoColor:
line  137:
E116: Invalid arguments for function s:Reltime(s:relstart)
Press ENTER or type command to continue
Error detected while processing function Colorizer#DoColor:
line  137:
E15: Invalid expression: s:Reltime(s:relstart)
chrisbra commented 9 years ago

Please check, if this issue is fixed now. Thanks!

mantislin commented 9 years ago

Yes, it has been fixed, thanks! And is it designed not to support WindowsCommandPrompt, right?

chrisbra commented 9 years ago

Hi mantislin!

On Do, 06 Nov 2014, mantislin wrote:

Yes, it has been fixed, thanks!

You're welcome

And is it designed not to support WindowsCommandPrompt, right?

I don't think, it can. Currently it depends on the xterm color cube to determine the colors. I am not sure, if the windows console supports colors and which, but you could trick the plugin into trying to highlight colors by setting the 't_Co' option to 88 or 256 colors.

Best,

Christian

Um die Welt zu ändern, sie neu zu gestalten, müssen zuvor die Menschen sich selbst umstellen. -- Fjodor Michailowitsch Dostojewski

mantislin commented 9 years ago

Oh, I see. Just ask, never mind. Thanks.