Ⅰ. 插件描述
Vim plugin to choose your colorscheme based on the time of dayⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dan-f/vim-daylight'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dan-f/vim-daylight'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dan-f/vim-daylight'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dan-f/vim-daylight
Ⅳ. 文档说明
vim-daylight
Vim plugin to change your colorscheme based on the time of day
Installation
I recommend using Pathogen or
Vundle to manage your plugins.
Pathogen:
$ git clone https://github.com/gmarik/vundle ~/.vim/bundle/vim-daylight- Vundle:
Add the following to your .vimrc:
Bundle 'daf-/vim-daylight'
Then launch vim and run
:BundleInstall
Settings
For now, you need to specify four themes corresponding to the following times
of day: morning, afternoon, evening, and late night for terminal and gvim
- For example:
let g:daylight_morning_color_gvim = "Tomorrow"
let g:daylight_afternoon_color_gvim = "solarized"
let g:daylight_evening_color_gvim = "Tomorrow-Night"
let g:daylight_late_color_gvim = "jellybeans"let g:daylight_morning_color_term = "Tomorrow"
let g:daylight_afternoon_color_term = "mayansmoke"
let g:daylight_evening_color_term = "Tomorrow-Night"
let g:daylight_late_color_term = "jellybeans"
You may also specify the starting times - the hours at which the morning,
afternoon, evening, and late night phases each begin. For example:
let g:daylight_morning_hour = 8 " after 8am, the morning colorscheme is applied
By default, the values are defined as follows:
let g:daylight_late_hour = 22
let g:daylight_morning_hour = 6
let g:daylight_afternoon_hour = 12
let g:daylight_evening_hour = 18