Ⅰ. 插件描述
A plugin for random color schemes and fonts, even on start up!Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fudesign2008/randomcolor-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fudesign2008/randomcolor-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fudesign2008/randomcolor-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/fudesign2008/randomcolor.vim
Ⅳ. 文档说明
# randomTheme.vim
A plugin for switch color scheme and font, even on start up!
Install & Usage
Before install this plugin, you can install
- almost all the vim color schemes from
vim-colorschemes. Top 10 Coding Fonts for Developers
- Some fonts is put in
./fontsfolder
- Some fonts is put in
Then,
- Install this plugin.
- Open vim and execute
:RandomThemeto enjoy!
Configuration
g:favorite_color_schemes
By default, the plugin will try to find all the color schemes in runtime path.
If want to use your favorite color schemes for random, you can set a list/array
to this option in .vimrc. For example:
let g:favorite_color_schemes = ['molokai',
\ 'zenburn',
\ 'jellybeans',
\ 'peaksea']g:favorite_gui_fonts
The plugin will try to use default setting.
Note: Before using a font, you should install font on system by yourself.
let g:favorite_gui_fonts = [
\ 'Monaco:h12',
\ 'Fira\ Code:h12',
\ 'Cascadia\ Code:h12',
\ 'Ubuntu\ Mono:h14',
\ 'Consolas:h13'
\]
g:random_theme_start
The plugin will use a random color scheme and font when vim starting up by default.
If you want to disable this action, you can set the value ofg:random_theme_start in .vimrc. For example:
let g:random_theme_start = 0
colo pyte
Available values are here:
0- Do not use1- Use, default value2- Use, but only when vim is running in the GUI3- Use, but only when vim is NOT runing in the GUI
Commands
:RandomFont- select a font fromg:favorite_gui_fonts:RandomTheme- select a color scheme from all available schemes and run:RandomFont:RandomThemeselect a color scheme:RandomTheme darkselect a dark color scheme:RandomTheme lightselect a light color scheme
:RandomThemeFavorite- select a color scheme from the schemes ing:favorite_color_schemesand run:RandomFont
Change Log
2020-01-10
- add
:RandomThemeFavoritecommand - remove
:RandomColorcommand
- add
2019-12-09
- Remove font
Iosevka
- Remove font
2019-09-23
- Rename to
randomTheme.vim - add
:RandomThemecommand - add
g:favorite_gui_fonts - remove
:RandomAll,:RandomFavoritecommands
- Rename to
2015-11-23
- Every color scheme will be matched in each round
2015-11-03
- Rename
g:random_color_schemestog:favorite_color_schemes - add
:RandomFavorite,:RandomAllcommands
- Rename
2015-02-07
- Rename to
randomColor.vim
- Rename to
1.0.2
- add
g:random_theme_startoption
- add
1.0.1
- add help document
1.0.0
- random colors
- add good colors
Recommended Color Schemes
Light Schemes
- pyte
- simpleandfriendly
Dark Schemes
- jellybeans
- molokai
Special Schemes
- lucius
- solarized
- base16
See the following articles for more infomation