A Vim colorscheme based on Github's syntax highlighting as of 2018.
I wasn't happy with endel/vim-github-colorscheme, as it was out of date.
It degrades gracefully in non-gui mode (ie ctermbg/ctermfg/256colors).
Install with your favourite plugin manager. For vim-plug:
Plug 'cormacrelf/vim-colors-github'
Then set your colorscheme to 'github':
" in your .vimrc or init.vim
colorscheme github
" if you use airline
let g:airline_theme = "github"
Place before the colorscheme github
:
" use a slightly darker background, like GitHub inline code blocks
let g:github_colors_soft = 1
" default is to extend a few languages' syntaxes to highlight function calls
" (eg c). use this to disable that.
let g:github_colors_extra_functions = 0
Distributed under the same terms as Vim itself. See :help license
.