Skip to content

Instantly share code, notes, and snippets.

Created February 12, 2016 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/da5f9657c77428526248 to your computer and use it in GitHub Desktop.
Save anonymous/da5f9657c77428526248 to your computer and use it in GitHub Desktop.
Simplistic pathogen-plug
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