Ⅰ. 插件描述
Toggl client in vim scriptⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'termoshtt/toggl-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'termoshtt/toggl-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'termoshtt/toggl-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/termoshtt/toggl.vim
Ⅳ. 文档说明
toggl.vim
Toggl client for vimscript and vim.
Dependences
- vital.vim
- unite.vim (optional)
Usage
Set your API token
let g:toggl_api_token = "b51ff78xxxxxxxxxxxxxxxxxxxxxxxxx"Set your workspace ID (optional)
Note: If you don't set this, toggl.vim will default to your first workspace
let g:toggl_workspace_id = 987654321Start task
:TogglStart task name +project @tag1 @tag2Stop current task
:TogglStopunite.vim interface
There are two sources:
:Unite toggl/taskwhich helps you to restart past time entries.
:Unite toggl/projectwhich helps you to change the project of current task.
License
MIT (see LICENSE file)