Ⅰ. 插件描述
System notify for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gianarb/notify-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gianarb/notify-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gianarb/notify-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gianarb/notify.vim
Ⅳ. 文档说明
# Notify.vim

Rationale
This plugin is intended to be used by with other plugins that do background jobs and wants to notify the user about the success of a specific job.
See the #Examples section for use cases.
Implemented notification emitters
- osascript (Mac OSX)
- notify-send (Ubuntu)
Installation
Using Vundle
Add to your plugins
Plugin 'gianarb/notify.vim'Usage
Send a notification
Using the emitNotification function
call notify#emitNotification('Title', 'Body')Using the command
:Notify title contentFrom command line
vim +Notify\ title\ body +qallExamples
Automatic ctags with notification when completed
Dependencies
- tpope/vim-dispatch (execute commands asynchronously)
Add to your vimrc
function! GenerateCtags()
Dispatch! ctags -R && vim +Notify\ "Horray"\ "Ctags\ updated" +qall
endfunction
au BufWritePost *.c,*.cpp,*.h,*.php call GenerateCtags()