Skip to content
项目

cormacrelf/vim-colors-github has 372 GitHub stars and 41 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-21 04:34 UTC. Last push 2022-03-20.

这些数字如何统计

实测星标增长

24小时
0
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

A Vim colorscheme based on Github's syntax highlighting as of 2018.

开发工具

README.md

原文

vim-colors-github

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).

It supports the following plugins: airline, lightline, fzf, GitGutter, NERDTree, Startify, sneak, and :terminal.

Extra tuning has been done for the following languages: Vim script, Markdown, Pandoc Markdown (vim-pandoc-syntax) Diff, C, Rust, Go (fatih/vim-go), Haskell (neovimhaskell/haskell-vim), Ruby, Python, HTML, XML, TOML, YAML, Clojure, Typescript, (leafgarland/vim-typescript), JSX/TSX (MaxMEllon/vim-jsx-pretty),.

Install

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 / lightline
let g:airline_theme = "github"
let g:lightline = { 'colorscheme': 'github' }

Options

Place before the colorscheme github:

" use a slightly darker background, like GitHub inline code blocks
let g:github_colors_soft = 1

" use the dark theme
set background=dark

" more blocky diff markers in signcolumn (e.g. GitGutter)
let g:github_colors_block_diffmark = 0

:help github_colors.txt

How to toggle background and also refresh the Lightline theme?

There is a built-in background toggler that does this. Make a mapping for it like so:

call github_colors#togglebg_map('<f5>')

Screenshots

Dark

Dark

Dark UI

Dark Diff

Light

Light

Light UI

Light Diff

Soft

Soft

Soft UI

Soft Diff

License

Distributed under the same terms as Vim itself. See :help license.