Last active
August 29, 2015 13:56
-
-
Save soramugi/9133200 to your computer and use it in GitHub Desktop.
neobundleupdateをバックグラウンドで勝手にしてくれるやつ
This file contains 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
let timefile = expand('~/.neobundle_updatetime') | |
if filereadable(timefile) | |
let time = join(readfile(timefile), "") | |
if time < system('date +%s') | |
let time = system('date -d "1 days" +%s') | |
call writefile([time], timefile) | |
silent! execute '!sh -c "~/.vim/bundle/neobundle.vim/bin/neoinstall" 2>/dev/null &' | |
endif | |
else | |
let time = system('date -d "1 days" +%s') | |
call writefile([time], timefile) | |
silent! execute '!sh -c "~/.vim/bundle/neobundle.vim/bin/neoinstall" 2>/dev/null &' | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment