#!/usr/bin/env bash # shellcheck disable=SC2230 # # Author: Hari Sekhon # Date: 2020-01-03 12:14:36 +0000 (Fri, 03 Jan 2020) # # https://github.com/harisekhon/devops-bash-tools # # License: see accompanying LICENSE file # # https://www.linkedin.com/in/harisekhon # # Installs Vim plugin manager Vundle to $HOME/.vim/bundle/Vundle.vim set -euo pipefail [ -n "${DEBUG:-}" ] && set -x if ! type -P vim &>/dev/null; then echo "Vim not installed, aborting..." exit 1 fi target=~/.vim/bundle/Vundle.vim mkdir -pv "${target%/*}" if ! [ -e "$target" ]; then git clone https://github.com/gmarik/Vundle.vim.git "$target" fi vim +PluginInstall +qall