github-syntax-theme-generator icon indicating copy to clipboard operation
github-syntax-theme-generator copied to clipboard

Vim adapter

Open albertorestifo opened this issue 8 years ago • 5 comments

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

albertorestifo avatar Oct 27 '16 05:10 albertorestifo

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

jonrohan avatar Oct 27 '16 12:10 jonrohan

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 avatar Oct 27 '16 12:10 albertorestifo

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

albertorestifo avatar Nov 28 '16 06:11 albertorestifo

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

jonrohan avatar Dec 09 '16 01:12 jonrohan

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

albertorestifo avatar Dec 09 '16 04:12 albertorestifo