primer / github-syntax-theme-generator

Uses a prettylights theme object to generate syntax themes for multiple platforms
MIT License
156 stars 33 forks source link

Vim adapter #10

Open albertorestifo opened 8 years ago

albertorestifo commented 8 years ago

Would be awesome to have the official github colorscheme for vim too

jonrohan commented 8 years ago

That would be awesome! But I haven't the slightest idea about Vim theming. Would greatly accept any PR and host the theme repository.

albertorestifo commented 8 years ago

I'm looking into it but it's not easy to create a generator for the vim colorschemes. What I'm doing instead is use the JSON file to "curate" a vim theme.

Once I finish, if the result will be of your liking, I have no problem in transferring the ownership to this organization.

The GitHub theme is by far my favourite and the day the official theme landed in Atom I was really really happy. Unfortunately I switched to vim 🙈

albertorestifo commented 7 years ago

This is my best attempt at a vim theme: github.vim

I used this repository for color reference and I manually checked against github for accuracy. It's somewhat limited in supported languages for now, but it's something

jonrohan commented 7 years ago

Wow, nice job. Would like to look into this more though and create a vim.js adapter in the compiler for this.

albertorestifo commented 7 years ago

There are two main obstacles to deal with when creating a vim theme:

  1. Every colour must also be translated to a 256 xterm colour
  2. Specifying only the default Vim syntax themes won't cut it: every syntax package has it's own rules and names