Skip to content

Instantly share code, notes, and snippets.

@brymck
Created February 16, 2012 08:17
Show Gist options
  • Select an option

  • Save brymck/1843229 to your computer and use it in GitHub Desktop.

Select an option

Save brymck/1843229 to your computer and use it in GitHub Desktop.
Installing RVM, Ruby and .vim
# Install RVM
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# Tell bash (the terminal) to automatically load RVM, then tell bash to reload
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
# Install the latest version of Ruby and set it as the default
rvm install 1.9.3
rvm use 1.9.3 --default
# Install Bundler, which manages Ruby dependencies
gem install bundler
# Get rid of all the log and Ruby source files in RVM's installation directory
rvm cleanup all
# Install my .vim files over the current installation
cd ~
rm -rf .vim
git clone http://github.com/brymck/dotvim.git .vim
rm .vimrc
ln -s .vim/vimrc .vimrc
cd .vim
# Update all Vim plugins, which are kept as submodules
git submodule init
git submodule update
# Update the gems used in the IRB (Interactive Ruby) shell
bundle update
# Manually install pathogen, which lets you load Vim plugins as git submodules
mkdir autoload
cd autoload
ln -s ../pathogen/autoload/pathogen.vim pathogen.vim
# Create preferences for IRB
cd ~
rm .irbrc
ln -s .vim/irbrc .irbrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment