Ⅰ. 插件描述
Colorscheme tweakerⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mg979/vim-colortweaks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mg979/vim-colortweaks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mg979/vim-colortweaks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mg979/vim-colortweaks
Ⅳ. 文档说明
# Colortweaks
<!-- vim-markdown-toc GFM -->
<!-- vim-markdown-toc -->
Introduction
It allows customization of schemes without the need to alter the scheme itself.
It's nothing you couldn't do by changing them yourself, but this plugin will
do it automatically at every scheme switch, and apply your presets for that
scheme.
Properties you can define, among others:
- cursor color in normal/insert/replace mode
- line highlight color (different for insert/normal mode)
- line highlight presets for light/dark schemes
- alternate between the two last selected schemes
- invert background color
- rotate among a list of schemes
- further customizations for schemes
- can cooperate with xolox/vim-colorscheme-switcher
Installation
With vim-plug:
`Plug 'mg979/vim-colortweaks'`
Note that by default it does nothing. You must set up the options.
Commands
(*) If xolox/vim-colorscheme-switcher is installed, its command will be run when switching schemes.
|Plug | Default | Notes |
|-|-|-|
|<Plug>ColorRotatePrev | [C | previous scheme in rotate list|
|<Plug>ColorRotateNext | ]C | next scheme in rotate list|
|<Plug>ColorSwitch | <leader>cs | alternate the last 2 schemes|
|<Plug>ColorInvert | <leader>ci | try to invert dark/light|
|<Plug>ColorsList | <leader>C | custom fzf command|
as :colorscheme, but applying tweaks:
:Colorscheme <name>
Customization
:help colortweaks