Ⅰ. 插件描述
Vim plugin for timesheet.txt filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'scy/vim-timesheet'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'scy/vim-timesheet'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'scy/vim-timesheet'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/scy/vim-timesheet
Ⅳ. 文档说明
# vim-timesheet
This is a Vim package to edit timesheet.txt files.
It's still kind of basic.
Features
- detects files called
timesheet.txtasfiletype=timesheet - syntax highlighting
normal mode bindings:
<LocalLeader>n: create a new entry<LocalLeader>s: stop the last entry<LocalLeader>c: continue the last entry
The bindings are rather stupid:
For example, you'll be able to stop the entry even if none is running.
In other words, this plugin helps you edit the files, it's not a time tracking UI.
Status
It works.
There are some things missing (issue ID highlighting, error highlighting), but it's alright for the moment.
Installation
It's compatible to the usual Vim package managers, if you're using one of these.
You can also use Vim 8's included package management by cloning this repository to ~/.vim/pack/vim-timesheet/start/vim-timesheet.