Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

question: Colorizer#AutoCmds #5

Closed
teschmitz opened this Issue March 18, 2012 · 8 comments

2 participants

teschmitz chrisbra
teschmitz

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.

Regards,
Tarlika Elisabeth

chrisbra
Owner

Hm, maybe a BufWinEnter autocommand is better? The idea is, to just call the plugin to highlight colors when first entering a buffer.

teschmitz
chrisbra
Owner

That is an interesting idea. What filetypes come to mind?

teschmitz
chrisbra
Owner
teschmitz

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?

chrisbra
Owner
teschmitz

Many thanks for the fixes, Christian.

I just opened a CSS file and it gives me pleasure everytime I see the wee colour blocks!

chrisbra chrisbra closed this March 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.