carbonized


Ⅰ. 插件描述

vim theme inspired by the Carbon keycap set

Ⅱ. 基本信息

创建日期:  2017-09-08
使用用户:  38
Github星:  49
插件作者:  nightsense

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'nightsense/carbonized'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'nightsense/carbonized'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'nightsense/carbonized'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/nightsense/carbonized

Ⅳ. 文档说明

This repository has been superseded by vimspectr.

.

.

.

<h1 id="carbonized">carbonized</h1>

<p>A vim theme inspired by the Carbon keycap set by T0mb3ry.</p>

<h2 id="screenshots">screenshots</h2>

carbonized-darkcarbonized-light
screenshot of the carbonized-dark vim theme screenshot of the carbonized-light vim theme
<p>pictured font: Input Mono Narrow (1.2x line spacing)</p>

<h2 id="setup">setup</h2>

<h3 id="installation">installation</h3>

<p>While vim themes can be installed manually (place theme file in ~/.vim/colors/), a plugin helper is recommended.</p>

<p>If you don’t have a preferred helper, consider trying vim-plug, which can be installed with:</p>

<div class="highlighter-rouge"><div class="highlight"><pre class="highlight">curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
</pre></div></div>

<p>To install carbonized using vim-plug, add the following to the top of your vimrc:</p>

<div class="highlighter-rouge"><div class="highlight"><pre class="highlight">call plug#begin('~/.vim/plugged')
Plug 'nightsense/carbonized'
call plug#end()
</pre></div></div>

<p>Then restart vim and run PlugUpdate (from the vim command line).</p>

<h3 id="activation">activation</h3>

<p>To activate the carbonized theme, add one of the following lines to your vimrc:</p>

  • colorscheme carbonized-light
  • colorscheme carbonized-dark

<p>To activate the lightline theme, add one of the following lines to your lightline config:</p>

  • 'colorscheme': 'carbonized_light',
  • 'colorscheme': 'carbonized_dark',
<p>To assign themes to specific intervals of the day, try the night-and-day plugin.</p>

<h3 id="options">options</h3>

<p>You can tweak the following options by adding lines to your `vimrc’.</p>

<p>Disable highlighted current line number:</p>

<div class="highlighter-rouge"><div class="highlight"><pre class="highlight">let g:carbonized_dark_CursorLineNr = 'off'
let g:carbonized_light_CursorLineNr = 'off'
</pre></div></div>

<p>Disable the highlighted line number background:</p>

<div class="highlighter-rouge"><div class="highlight"><pre class="highlight">let g:carbonized_dark_LineNr = 'off'
let g:carbonized_light_LineNr = 'off'
</pre></div></div>

<h2 id="terminal-vim">terminal vim</h2>

<p>See the nightshell repository, which allows carbonized to be used in a variety of terminal applications.</p>

<h2 id="palette">palette</h2>

<p>carbonized consists of 8 theme-distinct base colours, which are used for most interface elements, and 8 standard accent colours (common to the “nightsense theme family”) used for syntax highlighting.</p>

  • hues were selected at the scale of 1/48 (7.5°) colour wheel intervals
  • saturations and values were selected at the scale of 1/24 (4.17%)
  • the ISO 3:1 contrast standard is met by nearly all text/background combinations, exceptions being made for some transient-highlighted backgrounds (e.g. cursorcolumn, cursorline)
base light accents dark accents
2b2b2b  f55050  bf5858
3b3b37  e06a26  b56f45
75756e  d4ac35  ab8e38
8a8a81  219e21  508a50
9e9e95  1b9e9e  458a8a
b5b5aa  468dd4  557b9e
f0f0e1  a26fbf  8b6a9e
fffff0  d46a84  ab6a7a

<p>
Red, the colour of alarm, is used for warning elements, including error messages, misspellings, and diff deletions.</p>

<p>
Orange, the colour of fire, can be associated with the preliminary “warmup” phase of some activity; literally, this could be the heating-up of a hearth for forging, or a stove for cooking. Orange is therefore used for preliminary elements, such as preprocessor commands (which prepare data to be handled by another program), incremental searching (that is, a search term in the process of being typed), titles, and miscapitalized words.</p>

<p>
Yellow, the classic highlighting colour, is applied to elements that are not warnings, yet should draw attention with high visibility. These highlighted elements include search results, task tags (TODO, FIXME…), and diff changes.</p>

<p>
Green, the colour that says “go ahead, proceed with the task at hand”, is used for action elements, such as statements (if/then, while/do, case…), mode indicators (insert, visual…), vim user prompts, and diff additions.</p>

<p>
Teal is named after the “common teal”, a kind of duck, thus connecting this colour with the concept of “species”, which is a means of classifying life into very specific types. Teal is therefore used for specifying object types, such as data type (boolean, integer, string…) or storage class (static, volatile…), as well as marking mislocalized words (that is, words that are not misspelled but of the wrong type, namely a foreign locale type).</p>

<p>
Blue, a colour of calm stability, is used for constants, which come in the form of boolean values, integers, floating-point numbers, characters, and strings.</p>

<p>
Purple, often associated with (historically) rare purple dyes produced for special works of art, is used for special text, including special characters (standalone or within syntax units), vim tags, and debugging statements. Rarely-used words are also marked, allowing the writer to consider whether such a specially uncommon word is appropriate.</p>

<p>
Pink, the colour of spring blossoms, is used for object names, including the names of variables and functions. To code is to bring countless objects blossoming into life as one types their names.</p>

添加新评论