Skip to content
Vim color scheme using Open Color
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci Add .travis.yml to generate HTMLs for preview Mar 8, 2019
colors Use Normal's foreground color for Conceal Mar 22, 2019
screenshots Update screenshots Oct 2, 2018
.travis.yml Wait seconds for GUI Mar 8, 2019
LICENSE.txt Bump version to 2.1.0 Feb 27, 2019
README.md Release v2.3.0 Mar 8, 2019

README.md

open-color.vim

Build Status

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.

You can’t perform that action at this time.