1

I want to change my colorscheme to the one used by Github for Ruby.

I searched for one hour with out any luck. Is the color scheme used by Github open source ? or should I write my own colorscheme inspired by Github's?

3

Update: There is now a Vim colorscheme based on Github's syntax highlighting as of 2018: cormacrelf/vim-colors-github


I think the closest available is the well known endel/vim-github-colorscheme, but it may need some tweaks to suit your taste.

Screenshots from the repo:

Screenshot 1

Screenshot 2


It seems that GitHub switched from Pygments to Linguist for syntax highlighting, but it is handled on the server side in both cases. Also check out Rouge used on GitLab.


Finally, there is a related question on Stack Overflow: Using syntax highlight from GitHub.

2
  • Hey I already knew about the endel but it does not do a good job. How can I integrate Linguist into vim colorscheme? Sep 4 '17 at 10:37
  • You could look up the colors used in the GitHub ruby lexer, and develop your own colorscheme, but this can quickly become tedious. I'll update my answer if I find a lead.
    – LEI
    Sep 4 '17 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.