Skip to content

gianarb/notify.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

System notify for vim

Resources

Stars

Watchers

Forks

Packages

No packages published