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.
- osascript (Mac OSX)
- notify-send (Ubuntu)
Add to your plugins
Plugin 'gianarb/notify.vim'
Send a notification
call notify#emitNotification('Title', 'Body')
:Notify title content
vim +Notify\ title\ body +qall
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()