Please, excuse my ignorance: why does DoColor need to be called on BufEnter?
When I initially configered the plugin, I plumped for auto-colouring, of course had a wee look at your Colorizer.vim. Needless to say, with all the colour definitions loading was sloooowww ;-) And that's when I realized that merely bringing a tab to the foreground causes the Highlighting to be applied again.
I'm just asking because auto-highlighting might be useful for certain filetypes.
Hm, maybe a BufWinEnter autocommand is better? The idea is, to just call the plugin to highlight colors when first entering a buffer.
That is an interesting idea. What filetypes come to mind?
I am getting an error message when opening a css file now:
"Error detected while processing function Colorizer#DoColor
E380 Undo number 0 not found"
The colorizer_names variable did not seem to be doing anything, maybe because of this error?
Many thanks for the fixes, Christian.
I just opened a CSS file and it gives me pleasure everytime I see the wee colour blocks!