Created
November 10, 2013 14:28
-
-
Save syui/7398926 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:update_cbuffer_growl() | |
ruby << EOC | |
line = VIM::Buffer.current.line | |
system("growlnotify -a MacVim -m '#{line}'") | |
EOC | |
endfunction | |
function! s:update_cbuffer() | |
augroup update-cbuffer | |
autocmd! | |
autocmd TextChanged * call <SID>update_cbuffer_growl() | |
augroup END | |
endfunction | |
command! -bar UpdateCbuffer call <SID>update_cbuffer() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment