Skip to content

Instantly share code, notes, and snippets.

@foo9
Last active December 17, 2015 22:39
Show Gist options
  • Select an option

  • Save foo9/5684028 to your computer and use it in GitHub Desktop.

Select an option

Save foo9/5684028 to your computer and use it in GitHub Desktop.

Sublime Text: The text editor you'll fall in love with http://www.sublimetext.com/ SublimeText2設定メモ #SublimeText2 - Qiita [キータ] http://qiita.com/items/bdaf54839dc12babefb4

Install the "Command Line Tools for Xcode

Homebrew — MacPorts driving you to drink? Try Homebrew! http://mxcl.github.io/homebrew/

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
$ brew -v
Homebrew 0.9.4
$ brew update
$ brew install git
$ git --version
git version 1.7.12.4 (Apple Git-37)
$ mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \
    https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
$ cd ~/.vim/bundle
$ git clone https://github.com/scrooloose/nerdtree.git
$touch .vimrc
execute pathogen#infect()

syntax on
filetype plugin indent on

autocmd vimenter * NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif

set nocompatible
set fileformats=unix,dos,mac
set title
set number
set showmatch
syntax on
set autoindent
set tabstop=4
set shiftwidth=4
set smartindent
set expandtab ts=4 sw=4 ai
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set list
set listchars=tab:»-,trail:-,extends:»,precedes:«,nbsp:%
set noswapfile

vnoremap <silent> > >gv
vnoremap <silent> < <gv
$ brew install rbenv
$ brew install ruby-build
$ rbenv -v
rbenv 0.4.0
$ rbenv install -l
$ rbenv install 2.0.0-p195
$ rbenv rehash
$ rbenv global 2.0.0-p195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment