Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 36 lines (26 sloc) 0.988 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
syntax on "turn on syntax highlighting

set incsearch "highlight matches as you type
set hlsearch "highlight matches

set number "line numbers
set ruler "show cursor position on bottom right of screen

"turn on indentation"
filetype plugin indent on

"two space tabs
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab "use spaces instead of tabs"

set visualbell "turn off terminal bell

set laststatus=2 "show the last status line
set title "show the status line in the terminal title

set wildmode=list:longest "allow shell-like tab autocompletion for paths with :e

"textmate CMD-T like Fuzzy file support
map <Leader>t :FuzzyFinderTextMate<Enter>

"strip whitespace when saving the following files
autocmd BufWritePre *.js :%s/\s\+$//e
autocmd BufWritePre *.md :%s/\s\+$//e
autocmd BufWritePre *.rb :%s/\s\+$//e
autocmd BufWritePre *.css :%s/\s\+$//e
autocmd BufWritePre *.sass :%s/\s\+$//e
autocmd BufWritePre *.scss :%s/\s\+$//e
autocmd BufWritePre *.html :%s/\s\+$//e
Something went wrong with that request. Please try again.