Skip to content

Instantly share code, notes, and snippets.

set tabstop=2
set expandtab
set shiftwidth=2
set title
set number
set nowrap
"set mouse=a
set splitright
let ruby_space_errors=1
@andrewdsmith
andrewdsmith / git_prefs.sh
Created August 23, 2014 07:22
Git preferences
# Colourful commands
git config --global color.ui auto
# Follow GitHub guidance on line-endings on Linux.
git config --global core.autocrlf input
# Use Vim as editor
git config --global core.editor vim
# Ignore Vim swap files.
@andrewdsmith
andrewdsmith / Gemfile
Created March 28, 2013 08:21
A set of scripts for installing Ruby and Rails, via rbenv, in an entirely self-contained manner, i.e. with no global/system gems beyond bundler. Once you've run the install script, run `source developer_start.sh` then `rails new .` to generator your new Rails app. You'll need to run `source developer_start.sh` for each new shell where you'll be …
source 'https://rubygems.org'
gem 'rails', '4.0.0.beta1'