Ⅰ. 插件描述
Sends Desktop notifications to remind you to commit.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'chrispenner/vim-committed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'chrispenner/vim-committed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'chrispenner/vim-committed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/chrispenner/vim-committed
Ⅳ. 文档说明
# Committed
Committed is a simple vim plugin that will send you a Mac OSX desktop
notification if you haven't committed your code within a certain amount of
- To keep from being annoying, consecutive reminder messages are shown with
- exponential backoff. See the section on configuration to choose your
threshold settings.
Committed will run a check each time you write a buffer.

Installation
Committed may be installed directly from Github. It's recommended to use a
plugin manager. Committed requires OSX.
Using Vim-Plug
Add the following to your vimrc:
Plug 'ChrisPenner/vim-committed'Using Vundle:
Add the following to your vimrc:
Plugin 'ChrisPenner/vim-committed'Using Pathogen:
Run the following command:
cd ~/.vim/bundle && \
git clone git://github.com/ChrisPenner/vim-committed.gitCommands
Use the following commands to enable/disable/toggle the plugin.
:CommittedDisable
:CommittedEnable
:CommittedToggleConfiguration
There are a few configurable parameters to tune operation to your needs.
Here's the default configuration:
" Start alerting after 5 minutes without a commit.
" The threshold doubles each time it occurs
" So for instance the first notice is at 5 minutes,
" then 10, then 20, then 40, etc.
let g:committed_min_time_threshold = 5
" A notification won't be triggered unless at least this many lines
" have been changed.
let g:committed_lines_threshold = 15Known Issues
Due to how applescript works within tmux, if running vim within tmux you may
need to install an additional tool. With homebrew you can run:
brew install reattach-to-user-namespaceBug Reports
Please report any bugs encountered as issues on Github.