Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cormacrelf/vim-colors-github
A Vim colorscheme based on Github's syntax highlighting as of 2018.
https://github.com/cormacrelf/vim-colors-github
colorscheme github neovim nvim vim
Last synced: 4 days ago
JSON representation
A Vim colorscheme based on Github's syntax highlighting as of 2018.
- Host: GitHub
- URL: https://github.com/cormacrelf/vim-colors-github
- Owner: cormacrelf
- Created: 2018-10-13T13:45:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T11:14:32.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T08:13:01.547Z (11 days ago)
- Topics: colorscheme, github, neovim, nvim, vim
- Language: Vim script
- Homepage:
- Size: 1.84 MB
- Stars: 375
- Watchers: 8
- Forks: 42
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-colors-github
A Vim colorscheme based on Github's syntax highlighting as of 2018.
I wasn't happy with [endel/vim-github-colorscheme](https://github.com/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](https://github.com/vim-airline/vim-airline),
[lightline](https://github.com/vim-airline/lightline),
[fzf](https://github.com/junegunn/fzf),
[GitGutter](https://github.com/airblade/vim-gitgutter),
[NERDTree](https://github.com/scrooloose/nerdtree),
[Startify](https://github.com/mhinz/vim-startify),
[sneak](https://github.com/justinmk/vim-sneak),
and `:terminal`.Extra tuning has been done for the following languages:
Vim script, Markdown, Pandoc Markdown
([vim-pandoc-syntax](https://github.com/vim-pandoc/vim-pandoc-syntax))
Diff, C, Rust,
Go ([fatih/vim-go](https://github.com/fatih/vim-go)),
Haskell
([neovimhaskell/haskell-vim](https://github.com/neovimhaskell/haskell-vim)),
Ruby, Python, HTML, XML, TOML, YAML, Clojure, Typescript,
([leafgarland/vim-typescript](https://github.com/leafgarland/vim-typescript)),
JSX/TSX
([MaxMEllon/vim-jsx-pretty](https://github.com/MaxMEllon/vim-jsx-pretty)),.## Install
Install with your favourite plugin manager. For vim-plug:
```vim
Plug 'cormacrelf/vim-colors-github'
```Then set your colorscheme to 'github':
```vim
" 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`:
```vim
" 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:```vim
call github_colors#togglebg_map('')
```## Screenshots
### Dark
![Dark](shots/dark.png)
![Dark UI](shots/dark-ui-elements.png)
![Dark Diff](shots/dark-diff.png)
### Light
![Light](shots/light.png)
![Light UI](shots/light-ui-elements.png)
![Light Diff](shots/light-diff.png)
### Soft
![Soft](shots/soft.png)
![Soft UI](shots/soft-ui-elements.png)
![Soft Diff](shots/soft-diff.png)
## License
Distributed under the same terms as Vim itself. See `:help license`.