-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix colorscheme switching problems at template level #3
Comments
@tpope's comment is spot on there. As things stand currently, the only "clean" way to fix the issue of messed up highlighting after color switching is to avoid overriding the highlighting of syntax files in colorschemes entirely. I see two ways to encourage colorscheme developers to follow such a policy in templates:
|
I have added a “Best practices” section to Colortemplate's help file recommending, among the rest, to avoid filetype-specific highlight groups or to define them conditionally. As far as I can see, this issue not solvable in other ways (except by plugins like colorscheme-switcher—no idea how effective they are, though), not unless something changes in Vim. I will leave this open for the time being, in case someone comes with a better idea. |
Closing, because this issue has been fixed in Vim (vim/vim#4405). |
(Original issue from @jordwalke at #2)
The text was updated successfully, but these errors were encountered: