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?

1

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.

  • Hey I already knew about the endel but it does not do a good job. How can I integrate Linguist into vim colorscheme? – Aditya Varma 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.