Skip to content

Instantly share code, notes, and snippets.

@l3lake
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save l3lake/be8c305ba052949224d9 to your computer and use it in GitHub Desktop.

Select an option

Save l3lake/be8c305ba052949224d9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo ">>> Installing"
# Update
sudo apt-get -y update && -y upgrade
echo ">>> Install base packages"
sudo apt-get install -qq curl unzip git-core ack-grep wget build-essential python-software-properties
echo ">>> Setting up Vim"
# Create directories needed for some .vimrc settings
sudo mkdir -p ~/.vim/backup
sudo mkdir -p ~/.vim/swap
# Install Janus, gist-vim, webapi-vim, vim-surround
sudo apt-get -y install ruby-dev rake exuberant-ctags ack-grep
curl -Lo- https://bit.ly/janus-bootstrap | bash
sudo mkdir -p ~/.janus
sudo git clone https://github.com/bling/vim-airline
sudo mv vim-airline ~/.janus/
sudo git clone https://github.com/mattn/gist-vim.git
sudo mv gist-vim ~/.janus/
sudo git clone https://github.com/mattn/webapi-vim.git
sudo mv webapi-vim ~/.janus/
sudo git clone https://github.com/tpope/vim-surround.git
sudo mv vim-surround ~/.janus/
# Clone my vimrc before & after
wget https://gist.githubusercontent.com/l3lake/ee34c6438e45046876b9/raw/df6f867fc7c7cf82ad2574ec25f7902954351d68/.vimrc.after -O .vimrc.after
wget https://gist.githubusercontent.com/l3lake/b9a357bc5f7beb327c0a/raw/541fc76c7bd68a80085257486e6c2516915226cd/.vimrc.before -O .vimrc.before
sudo mv .vimrc.before ~/
sudo mv .vimrc.after ~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment