Script to update vim pathogen and bundles
Because I use the execelent pathogen plugin for vim, I wrote a small script to update it and the bundles I use:
#!/usr/bin/env zsh
which curl >/dev/null || {
echo "curl not found in path..."
exit 1
}
which git >/dev/null || {
echo "git not found in path..."
exit 1
}
PATHOGEN_DIR="${HOME}/.vim/autoload"
BUNDLES_DIR="${HOME}/.vim/bundle"
if [[ -d "${PATHOGEN_DIR}" ]]; then
echo "Updating pathogen..."
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
fi
if [[ -d "${BUNDLES_DIR}" ]]; then
echo "Updating bundles..."
for bundle in "${BUNDLES_DIR}/"*; do
if [[ -d "${bundle}/.git" ]]; then
echo "Bundle: ${bundle}..."
cd "${bundle}"
git pull
fi
done
fi
Here is a list of bundles I find useful:
- https://github.com/Valloric/YouCompleteMe (An absolutley awesome and fast completion engine!)
- https://github.com/mileszs/ack.vim.git
- https://github.com/chriskempson/base16-vim.git
- https://github.com/docunext/closetag.vim.git
- https://github.com/mattn/emmet-vim.git
- https://github.com/vim-scripts/java.vim.git
- https://github.com/mrtazz/molokai.vim.git
- https://github.com/scrooloose/nerdcommenter.git
- https://github.com/scrooloose/nerdtree.git
- https://github.com/scrooloose/syntastic.git
- https://github.com/majutsushi/tagbar.git
- https://github.com/bling/vim-airline (A lightweight alternative to powerline.)
- https://github.com/kchmck/vim-coffee-script.git
- https://github.com/altercation/vim-colors-solarized.git
- https://github.com/atelierbram/vim-colors_atelier-schemes.git
- https://github.com/tpope/vim-cucumber.git
- https://github.com/xolox/vim-easytags.git
- https://github.com/xolox/vim-misc (is needed for vim-easytags)
- https://github.com/tpope/vim-fugitive.git
- https://github.com/airblade/vim-gitgutter.git
- https://github.com/jcf/vim-latex.git
- https://github.com/plasticboy/vim-markdown.git
- https://github.com/christophwagner/vim-maven.git
- https://github.com/rainerborene/vim-pony.git
- https://github.com/Lokaltog/vim-powerline.git (Maybe you should use vim-airline instead.)
- https://github.com/tpope/vim-rails.git
- https://github.com/vim-ruby/vim-ruby.git
- https://github.com/derekwyatt/vim-scala.git
- https://github.com/othree/xml.vim.git
- https://github.com/tpope/vim-fireplace
Written by Jens Grassel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#