Created
February 12, 2016 16:19
-
-
Save anonymous/da5f9657c77428526248 to your computer and use it in GitHub Desktop.
Simplistic pathogen-plug
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
if !isdirectory(expand("~/.vim/autoload")) | |
sil !wget -q https://tpo.pe/pathogen.vim -P ~/.vim/autoload | |
sil !mkdir ~/.vim/bundle | |
en | |
execute pathogen#infect() | |
function! s:PluginUpdate() | |
let pwd = getcwd() | |
let git = '~/.vim/bundle' | |
try | |
execute 'cd' fnameescape(git) | |
echon "Bootstrapping..." | |
sil! !echo | |
\ https://github.com/kien/ctrlp.vim | |
\ https://github.com/mhinz/vim-signify | |
\ https://github.com/tpope/vim-vinegar | |
\ https://github.com/tpope/vim-sensible | |
\ https://github.com/tpope/vim-vividchalk | |
\ https://github.com/tpope/vim-commentary | |
\ https://github.com/scrooloose/syntastic | |
\ https://github.com/junegunn/vim-peekaboo | |
\ | xargs -n1 git clone &>/dev/null | |
echon "Updating..." | |
sil !for file in */ ; do git -C $file pull origin master &>/dev/null; done | |
redraw! | |
finally | |
execute 'cd' fnameescape(pwd) | |
endtry | |
ec "Done." | |
unlet pwd | |
unlet git | |
endfunction | |
command! PluginUpdate call s:PluginUpdate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment