+
Skip to content

cormacrelf/vim-colors-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Extra tuning has been done for the following languages: VimL, Diff, C, Rust, Go (fatih/vim-go), Haskell (neovimhaskell/haskell-vim), Ruby, Python, Html, Xml, Toml, Yaml, Typescript. Though be aware, GitHub doesn't use many colors, so tuning is minimal.

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

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

:help github_colors.txt

Rust

rust

Soft mode (see above)

soft

C

c

Diff

diff

License

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载