Skip to content
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

Vim themes have been broken for 3 years #220

Open
gpakosz opened this issue Feb 26, 2018 · 0 comments
Open

Vim themes have been broken for 3 years #220

gpakosz opened this issue Feb 26, 2018 · 0 comments

Comments

@gpakosz
Copy link

gpakosz commented Feb 26, 2018

Hello,

Today, switching from Mac to Linux, I noticed the Vim themes have been broken for a while. The reason is that all the colorscheme files have lowercase + dash separator filenames, e.g. patriot-contrast.vim while inside the colorscheme definition file, the colors_name variable uses title case and spaces, e.g.

let g:colors_name = "Patriot Contrast"
let colors_name   = "Patriot Contrast"

As such, when you do colorscheme patriot-contrast, colors don't apply properly. And if you do :syntax enable you get the following error message:

Error detected while processing /usr/share/vim/vim80/syntax/synload.vim:
line 19:
E185: Cannot find color scheme 'Patriot Contrast'

It seems either renaming the patriot-contrast.vim file or changing the value of the colors_name variable fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant