Created
July 5, 2013 06:50
-
-
Save scottcagno/5932473 to your computer and use it in GitHub Desktop.
vim snippet and autocomplete bash bootstrapper
This file contains hidden or 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
| #!/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