Skip to content

Instantly share code, notes, and snippets.

@scottcagno
Created July 5, 2013 06:50
Show Gist options
  • Select an option

  • Save scottcagno/5932473 to your computer and use it in GitHub Desktop.

Select an option

Save scottcagno/5932473 to your computer and use it in GitHub Desktop.
vim snippet and autocomplete bash bootstrapper
#!/bin/bash
# install requirements if need be
if [ ! -x git ]; then
sudo apt-get install git
fi
# grab, install, and stage plugin for vim snippets, aka: snipmate
cd ~/Downloads
git clone https://github.com/msanders/snipmate.vim
if [ ! -d ~/.vim ]; then
mkdir ~/.vim
fi
cp -R snipmate.vim/* ~/.vim
rm -rf snipmate.vim
# grab, install, and stage plugin for auto-completion, aka: neocomplcache
git clone https://github.com/Shougo/neocomplcache.vim
cp -R neocomplcache.vim/* ~/.vim
rm -rf neocomplcache.vim
if [ ! -a ~/.vimrc ]; then
touch ~/.vimrc
fi
echo "let g:neocomplcache_enable_at_startup = 1" >> ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment