unite-pomodoro


Ⅰ. 插件描述

vim plugin. unite source for using Pomodoro Technique.

Ⅱ. 基本信息

创建日期:  2012-10-16
使用用户:  1
Github星:  1
插件作者:  tavi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'ryotakato/unite-pomodoro'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'ryotakato/unite-pomodoro'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'ryotakato/unite-pomodoro'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/ryotakato/unite-pomodoro

Ⅳ. 文档说明

unite-pomodoro

vim plugin. unite source for using Pomodoro Technique.

Requires

  • vim +timer (later than vim patch 7.4.1578)
  • Unite.vim

Config

.vimrc


" this is pomodoro technic one pomodoro minute(default 25)
let g:unite_pomodoro = {
\  'minute' : 25
\  }

" it is executed every one second
" use for display pomodoro time
" this sample is for lightline.vim"
function! g:unite_pomodoro.update_func()
  if match(getwinvar(winnr(), "&statusline"), "%{lightline#link()}") != -1
    call lightline#update()
  endif
endfunction

if you using lightline.vim, this is lightline config


let g:lightline = {
      \ 'colorscheme': 'wombat',
      \ 'active': {
      \   'right': [ [ 'lineinfo' ],
      \              [ 'percent' ],
      \              [ 'unite_pomodoro', 'fileformat', 'fileencoding', 'filetype' ] ]
      \ },
      \ 'component_function': {
      \   'unite_pomodoro': 'unite#pomodoro#get_running_count'
      \ }
      \ }

LICENSE

This software is released under the MIT License, see LICENSE.txt.

添加新评论