GithubHelp home page GithubHelp logo

caimofei / vim-colors-github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cormacrelf/vim-colors-github

0.0 0.0 0.0 1.88 MB

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

Python 15.68% Vim Script 84.32%

vim-colors-github's Introduction

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.

vim-colors-github's People

Contributors

cormacrelf avatar ujihisa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.