notify.vim


Ⅰ. 插件描述

System notify for vim

Ⅱ. 基本信息

创建日期:  2014-03-28
使用用户:  1
Github星:  5
插件作者:  Gianluca Arbezzano

Ⅲ. 安装方法

使用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

Vim Desktop notifications

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 content

From command line

vim +Notify\ title\ body +qall

Examples

Automatic ctags with notification when completed

Dependencies

Add to your vimrc

function! GenerateCtags()
   Dispatch! ctags -R && vim +Notify\ "Horray"\ "Ctags\ updated" +qall
endfunction
au BufWritePost *.c,*.cpp,*.h,*.php call GenerateCtags()

添加新评论