Giter Club home page Giter Club logo

vim-open-color's Introduction

open-color.vim

CircleCI

Vim color scheme using Open Color. Conversion from original colors to 256 colors has done according to CIEDE2000. See the implementation.

Demo

The previews are generated based on the latest master branch.

Screenshots (before v2.3.0)

GUI

open-color.vim with dark background in GUI

open-color.vim with light background in GUI

256-color

open-color.vim with dark background in 256 colors

open-color.vim with light background in 256 colors

Installation

  • Pathogen
    1. cd ~/.vim/bundle
    2. git clone https://github.com/yous/vim-open-color.git
  • Vundle
    1. Add Plugin 'yous/vim-open-color' to .vimrc
    2. Run :PluginInstall
  • NeoBundle
    1. Add NeoBundle 'yous/vim-open-color' to .vimrc
    2. Run :NeoBundleInstall
  • vim-plug
    1. Add Plug 'yous/vim-open-color' to .vimrc
    2. Run :PlugInstall

Usage

  1. Check your terminal.

    • If your terminal emulator supports true colors, add the following lines to your .vimrc.

      " Use 24-bit (true-color) mode in Vim/Neovim when outside tmux or screen.
      " If you're using tmux version 2.2 or later, you can remove the outermost $TMUX
      " check and use tmux's 24-bit color support
      " (http://sunaku.github.io/tmux-24bit-color.html#usage for more information.)
      if empty($TMUX) && empty($STY)
        " See https://gist.github.com/XVilka/8346728.
        if $COLORTERM =~# 'truecolor' || $COLORTERM =~# '24bit'
          if has('termguicolors')
            " See :help xterm-true-color
            if $TERM =~# '^screen'
              let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
              let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
            endif
            set termguicolors
          endif
        endif
      endif
    • To use 256-color mode, set your $TERM as *-256color or add set t_Co=256 in your .vimrc.

  2. Enable open-color color scheme:

    colorscheme open-color

License

Copyright © Chayoung You. See LICENSE.txt for details.

vim-open-color's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vim-open-color's Issues

Light background needed.

I use this color scheme with vim-markdown. Could you please make light background mode for day light?

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.