{"action":"opened","issue":{"url":"https://api.github.com/repos/daylerees/colour-schemes/issues/220","repository_url":"https://api.github.com/repos/daylerees/colour-schemes","labels_url":"https://api.github.com/repos/daylerees/colour-schemes/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/daylerees/colour-schemes/issues/220/comments","events_url":"https://api.github.com/repos/daylerees/colour-schemes/issues/220/events","html_url":"https://github.com/daylerees/colour-schemes/issues/220","id":300334706,"number":220,"title":"Vim themes have been broken for 3 years","user":{"login":"gpakosz","id":553208,"avatar_url":"https://avatars3.githubusercontent.com/u/553208?v=4","gravatar_id":"","url":"https://api.github.com/users/gpakosz","html_url":"https://github.com/gpakosz","followers_url":"https://api.github.com/users/gpakosz/followers","following_url":"https://api.github.com/users/gpakosz/following{/other_user}","gists_url":"https://api.github.com/users/gpakosz/gists{/gist_id}","starred_url":"https://api.github.com/users/gpakosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpakosz/subscriptions","organizations_url":"https://api.github.com/users/gpakosz/orgs","repos_url":"https://api.github.com/users/gpakosz/repos","events_url":"https://api.github.com/users/gpakosz/events{/privacy}","received_events_url":"https://api.github.com/users/gpakosz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-26T17:51:18Z","updated_at":"2018-02-26T17:51:18Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nToday, 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.\r\n```vim\r\nlet g:colors_name = \"Patriot Contrast\"\r\nlet colors_name   = \"Patriot Contrast\"\r\n```\r\n\r\nAs such, when you do `colorscheme patriot-contrast`, colors don't apply properly. And if you do `:syntax enable` you get the following error message:\r\n```\r\nError detected while processing /usr/share/vim/vim80/syntax/synload.vim:\r\nline 19:\r\nE185: Cannot find color scheme 'Patriot Contrast'\r\n```\r\n\r\nIt seems either renaming the `patriot-contrast.vim` file or changing the value of the `colors_name` variable fixes it."}}
{"actor":{"display_login":"gpakosz"}}