yowish


Ⅰ. 插件描述

A dark & yellowish vim colorscheme

Ⅱ. 基本信息

创建日期:  2015-01-10
使用用户:  42
Github星:  112
插件作者:  Kabbaj Amine

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Yowish, a yellowish dark vim colorscheme

Badge version
License version

Description

Yowish is a vim dark theme similar to outlander, with some yellow in it :smiley:
It works well on both GUI & 256-colors terminal.

Viml code

See supported file types, customized plugins and screens.

Note You can even use your own colors..

GUI vs terminal

The colors in 256-color terminals are quite similar to the ones in the GUI version.
Here is a comparison between GVim and xfce-terminal with a standard color palette:

GUI vs Terminal

Supported file types

Normally, any file type should be good looking, but some are more customized than others, check the screens.

Syntax plugins

The theme uses some elements from the following syntax plugins:

Other plugins

The theme provides custom colors for the following plugins (Note that you can disable them, see configuration for that).

Installation

Copy the distributed files into Vim runtime directory which is usually ~/.vim/, or $HOME/vimfiles on Windows.

Or in a better way, use a vim plugin manager:

Plugin managerIn vimrcInstallation command
Vim-plugPlug 'KabbAmine/yowish.vim'PlugInstall
VundlePlugin 'KabbAmine/yowish.vim'PluginInstall
NeoBundleNeoBundle 'KabbAmine/yowish.vim'NeoBundleInstall

Configuration

The configuration of the plugin is stocked in one global dictionary g:yowish.
To define/modify an option you can either:

let g:yowish = {}
let g:yowish.option1 = 'foo'
let g:yowish.option2 = 0

Or:

let g:yowish = {
            \ 'option1': 'foo',
            \ 'option2': 0
        \ }

Options

Be sure to define options before loading the colorscheme

keydefault valuedescription
colorsSee custom color paletteColor palette
term_italic0Use italic in terminal
comment_italic0Use italic for comments
spell_bad_colorNONEChange foreground color for spell check errors (Use the color name from color palette)
ctrlp1Custom colors for CtrlP
unite1Custom colors for Unite
nerdtree1Custom colors for NERDTree
agit1Custom colors for Agit
signjk1Custom colors for Signjk

Custom color palette

Starting from version 0.7.3 you can modify the color palette used in the theme using g:yowish.colors.
The values by default are:

g:yowish.colors = {
            \    'background'        : ['#222222', '235'],
            \    'backgroundDark'    : ['#0e0e0e', '232'],
            \    'backgroundLight'   : ['#393939', '236'],
            \    'comment'           : ['#6e6e6e', '242'],
            \    'green'             : ['#2acf2a', '40'],
            \    'lightBlue'         : ['#6699cc', '67'],
            \    'lightGreen'        : ['#99cc99','108']
            \    'lightRed'          : ['#f2777a', '203'],
            \    'lightViolet'       : ['#d09cea', '171'],
            \    'lightYellow'       : ['#ffcc66', '222'],
            \    'red'               : ['#f01d22', '160'],
            \    'selected'          : ['#373b41', '234'],
            \    'text'              : ['#cbcbcb', '251'],
            \    'textDark'          : ['#bebebe', '249'],
            \    'textExtraDark'     : ['#8c8c8c', '244'],
            \    'textLight'         : ['#ebebeb', '255'],
            \    'yellow'            : ['#ffbe3c', '215'],
            \ }

The value of each key is a list containing:

  1. A hexadecimal color for GUI.
  2. The equivalent 256-color for supported terminals.

Note that you can completely change the look, here is my personal custom palette:

let g:yowish.colors = {
            \    'background'       : ['#2f343f', 'none'],
            \    'backgroundDark'   : ['#191d27', '16'],
            \    'backgroundLight'  : ['#464b5b', '59'],
            \    'blue'             : ['#5295e2', '68'],
            \    'comment'          : ['#5b6176', '242'],
            \    'lightBlue'        : ['#e39f52', '179'],
            \    'lightYellow'      : ['#80aee3', '110'],
            \    'yellow'           : ['#5295e2', '68'],
            \ }

And there is how it looks in gvim & terminal vim.

Gvim

Terminal vim

Screens

Feel free to add screens for other file types or plugins.

css

Css sample

html

Html sample

pug

Pug sample

javascript

Javascript sample

php

Php sample

ruby

Ruby sample thanks to @

scss

Scss sample

sh

Sh sample

Diff with coffeescript files.

Diff

Notes

Being the 1st vim colorscheme that I'm developing, feel free to report issues.
Pull requests are welcome, but please provide a before/after screenshot.

And if you're asking yourself, yeah I like yellow :smile:

Todo

  • Support more plugins if needed
  • Better support for the following file types (PR are more than welcome):

    • [ ] python
    • [ ] c
    • [ ] java

Thanks

Thanks to Bram Moolenaar for creating the best piece of software in the world :heart:

Thanks to you if you're using yowish.

添加新评论