Ⅰ. 插件描述
Simple vim color scheme based on named, basic colorsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vietjtnguyen/toy-blocks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vietjtnguyen/toy-blocks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vietjtnguyen/toy-blocks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vietjtnguyen/toy-blocks
Ⅳ. 文档说明
A simple vim terminal colorscheme that focuses on using named colors and not direct hex or RGB values. This essentially defers to the user's terminal for final coloring (such as iterm color schemes, of which one is provided). Colors are chosen for visual distinction amongst syntax elements.
Screenshots
C++ source with provided iterm color scheme:

Python source with provided iterm color scheme:

Javascript source with provided iterm color scheme:

C++ source with iterm's "Tango Dark" color scheme:

Javascript source with iterm "Molokai" color scheme:

Install
Install using your favorite vim plugin manager (for example, vim-pathogen).
Usage
syntax on
colorscheme toy-blocksiterm Color Scheme
An iterm color scheme is also included which is a dark color scheme that is a slight variation on the standard iterm color scheme for better legibility, particularly with the blue.
Colors
Below is the colors from the provided iterm color scheme but as CSS with the RGB components listed.
.black.normal { color: rgb(0, 0, 0); }
.red.normal { color: rgb(201, 80, 75); }
.green.normal { color: rgb(49, 195, 56); }
.yellow.normal { color: rgb(199, 196, 0); }
.blue.normal { color: rgb(83, 128, 217); }
.magenta.normal { color: rgb(200, 98, 199); }
.cyan.normal { color: rgb(99, 198, 199); }
.white.normal { color: rgb(199, 199, 199); }
.black.bright { color: rgb(104, 104, 104); }
.red.bright { color: rgb(255, 110, 103); }
.green.bright { color: rgb(157, 234, 122); }
.yellow.bright { color: rgb(255, 230, 89); }
.blue.bright { color: rgb(126, 173, 255); }
.magenta.bright { color: rgb(255, 119, 255); }
.cyan.bright { color: rgb(96, 253, 255); }
.white.bright { color: rgb(255, 255, 255); }Name
The use of primary colors reminds me of kids toys. The deference to the user's terminal for final coloring means the scheme is mostly a "building block" for your final color scheme.