Skip to content

Instantly share code, notes, and snippets.

@jsermeno
Created September 18, 2011 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsermeno/1224881 to your computer and use it in GitHub Desktop.
Save jsermeno/1224881 to your computer and use it in GitHub Desktop.
Setup Vim
cp ~/Downloads/railscasts.vim ~/.vim/colors
git clone git://github.com/msanders/snipmate.vim.git
cd snipmate.vim
sudo cp -R * ~/.vim
cd ~/.vim/ruby/command-t
sudo ruby extconf.rb
sudo make
# Switch back to 1.9.2
rvm --default 1.9.2
git https://github.com/statianzo/vim-jade.git
cd vim-jade
sudo cp -R syntax ~/.vim
sudo cp -R ftdetect ~/.vim
sudo cp -R indent ~/.vim
git https://github.com/wavded/vim/stylus.git
cd vim-stylus
sudo cp -R syntax ~/.vim
sudo cp -R ftdetect ~/.vim
sudo cp -R indent ~/.vim
sudo vim ~/Downloads/command-t-1.2.1.vba
rvm install 1.8.7
rvm --default 1.8.7
mkdir ~/.vim
mkdir ~/.vim/colors
let mapleader=","
autocmd! bufwritepost vimrc source ~/.vimrc
syntax on
colorscheme railscasts
set transparency=2 "remove if you do not like transparent backgrounds
set gfn=Monaco:h12
set autoindent "indentation settings
set smartindent
set shiftwidth=4 "tabs as 4 spaces
set tabstop=4
set expandtab
set smarttab
set encoding=utf-8 "encoding
set ruler "see line information
set ignorecase "ignore case when searching
set smartcase
set hlsearch "search highlighting
set incsearch
set number "set linenumbers
filetype plugin on
:cd /path/to/your/favorite/project "useful if you're going to end up opening the same project every time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment