Ⅰ. 插件描述
Vim color scheme using Open ColorⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yous/vim-open-color'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yous/vim-open-color'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yous/vim-open-color'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yous/vim-open-color
Ⅳ. 文档说明
# open-color.vim
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


256-color


Installation
cd ~/.vim/bundlegit clone https://github.com/yous/vim-open-color.git
- Add
Plugin 'yous/vim-open-color'to.vimrc - Run
:PluginInstall
- Add
- Add
NeoBundle 'yous/vim-open-color'to.vimrc - Run
:NeoBundleInstall
- Add
- Add
Plug 'yous/vim-open-color'to.vimrc - Run
:PlugInstall
- Add
Usage
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
$TERMas*-256coloror add
set t_Co=256in your.vimrc.
- If your terminal emulator supports true colors,
Enable open-color color scheme:
colorscheme open-color
License
Copyright © Chayoung You. See LICENSE.txt for details.