New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ColorToggle doesn't enable color when previously toggled in another file #23
Comments
On Mo, 29 Jul 2013, Andri Möll wrote:
Thanks. Problem is, ColorToggle worked globally, and does not consider regards, ChristianEin unnütz Leben ist ein früher Tod. |
Cool. From the diff it looks like you switched the variables to use window local variables. I'm a bit confused — how do you envision this to work? In other issues we talked about making coloring be per-buffer (usually equivalent to per-file). Wouldn't it make more sense to store state in buffer variables? |
Hi Andri! On Di, 30 Jul 2013, Andri Möll wrote:
matching() is window-local, so we must use window-local variables. Liebe Grüße ChristianDenn worin besteht die Barbarei anders als darin, daß man das |
I'm not familiar with that part of Vim, but if you're saying that Vim sets such syntax highlighting per window and not per buffer, then my god, Vim is nuts. |
It looks as if
:ColorToggle
thinks it's on when in fact it was set on in another buffer.You can repeat it roughly this way:
:e A.css
:ColorToggle
:e B.css
:ColorToggle
And nothing happens. You'll have to toggle twice to get highlighting in the other file.
The text was updated successfully, but these errors were encountered: