chrisbra / Colorizer

color hex codes and color names
550 stars 31 forks source link

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

Closed mantislin closed 10 years ago

mantislin commented 10 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 10 years ago

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

mantislin commented 10 years ago

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

chrisbra commented 10 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 10 years ago

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