Ⅰ. 插件描述
Pomodoro TechniqueⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zuckonit/vim-airline-tomato'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zuckonit/vim-airline-tomato'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zuckonit/vim-airline-tomato'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zuckonit/vim-airline-tomato
Ⅳ. 文档说明
vim-airline-tomato
Introduction
This is a vim-airline extension for an easy application of the Pomodoro Technique.
Required
- Airline: The extension is based on vim-airline (like powerline, but faster and with a deeper KISS flavor)
- powerline-font: if you use wild char's, you may need install powerline font.
Optional
- pomicons: This is a font with 8 symbols to talk about the "Pomodoro Technique"® (You can use these special symbols to change the configuration). You can use one of the awesome-terminal-fonts that contains both powerline and pomicons symbols.
Configuration
- If you want to change the working time:
let g:tomato#interval = 60 * 60
- If you wat to change rest time:
let g:tomato#rest_time = 20 * 60
- If you want to change language(English or Chinese):
let g:tomato#lang = 'chinese'
- If you want to change working text:
let g:tomato#remind = "☻" (" uf003 " if you are using awesome-terminal-fonts)
- If you want to change rest text:
let g:tomato#restinfo = "☺" (" ue1f1 " if you are using awesome-terminal-fonts)
- If you want to enable clock:
let g:tomato#show_clock = 1
- If you want to show a count down:
let g:tomato#show_clock = 1
let g:tomato#show_count_down = 1
Reset (reset the count of tomato to be one)
- manually reset
:call tomato#reset()
- set auto reset when number over a value
let g:tomato#auto_reset_num = 24 (here put the number you wanna set)
if the g:tomato#auto_reset_num = -1, then the auto reset will be forbidden
if there is no g:tomato#auto_reset_num in your config, the default auto_reset_num is 24 * 60 / g:tomato#interval, the total tomato numbers of one day.
Screenshot
![]()
Thanks
Gabriele Lana <gabriele.lana@gmail.com> (for providing awesome fonts)
hellolj (for README gramma check)
CodeFalling (for providing functions clock and countdown)
License
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet:fen:fdl=0: