Ⅰ. 插件描述
Base16 colors for neovimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'soares/base16-nvim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'soares/base16-nvim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'soares/base16-nvim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/soares/base16.nvim
Ⅳ. 文档说明
# Base16 color schemes for nvim
Install with something like Plug:
Plug 'Soares/base16.nvim'
The main features of these color schemes are:
- They distinguish between "changing which red red is" and "changing which
things show up as red". Each color scheme is based off of vim's default
color scheme, but with the colors set to nicer base16 colors. Configuration
options let you change which types of objects are which types of colors.
- They set all the
g:terminal_color_*variables, which makes the terminal
emulator in neovim use a matching colorscheme.
Install this plugin in the usual way (with vim-plug or vundle or whatever). You
will need to either set termguicolors=1 or use something like
base16 shell to set your
terminal colors to your preferred base16 color scheme.
The current available color schemes are
3024
apathy
ashes
atelier-cave
atelier-dune
atelier-estuary
atelier-forest
atelier-heath
atelier-lakeside
atelier-plateau
atelier-savanna
atelier-seaside
atelier-sulphurpool
bespin
brewer
bright
chalk
codeschool
colors
darktooth
default
eighties
embers
flat
gooey
google
grayscale
greenscreen
harmonic
hopscotch
irblack
isotope
macintosh
marrakesh
mocha
monokai
ocean
oceanicnext
oliveira
paraiso
phd
pop
railscasts
redscreen
royal
seti
shapeshifter
solarized
summerfruit
tomorrow
tube
twilight
unikitty
yesterday-bright
yesterday-night
yesterday
To change what type of things show up as which color, you can configure with
commands such as
let g:base16_color_modifiers = {'Comment': 'fg=green'}
which makes comments green (instead of vim's default blue). You can use the
special colors
base similar3 similar2 similar1 contrast1 contrast2 contrast3 antibase
which range from black to white if background is dark, and from white to
black if background is light.
To use a transparent background (allowing you to take advantage of terminal
transparency and/or terminal background images), set
let g:base16_transparent_background = 1
When you're ready, use a colorscheme of your choice:
:set background=dark
:colorscheme summerfruit
You're welcome to change colorschemes on the fly. For more info, see
:help base16
It's also easy to make your own base16 color scheme, see the schemes/
directory for details. Basically, all you need to do is make a yaml file with
16 hex values in it. For reference, the order is:
black dark3 dark2 dark1 light1 light2 light3 white
red orange yellow green aqua blue purple brown
If you change the templates or add schemes, run python buildall.py to
generate all the pretty new color files. You'll need
base16-builder installed.