Created
November 16, 2010 19:13
-
-
Save flippingbits/702306 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype on " set filetype stuff to on | |
filetype plugin on | |
filetype indent on | |
set number " show line numbers | |
set ruler " show the cursor position all the time | |
set tabstop=2 " a tab is two spaces | |
set expandtab " insert space characters whenever the tab key is pressed | |
set backspace=indent,eol,start " allow backspacing over everything in insert mode | |
set shiftwidth=2 " number of spaces to use for autoindenting | |
set shiftround " use multiple of shiftwidth when indenting with '<' and '>' | |
set showmatch " set show matching parenthesis | |
set foldenable " enable folding | |
set ignorecase " ignore case when searching | |
set smartcase " ignore case if search pattern is all lowercase, case-sensitive otherwise | |
set smarttab " insert tabs on the start of a line according to shiftwidth, not tabstop | |
set scrolloff=2 " keep 2 lines off the edges of the screen when scrolling | |
set virtualedit=all " allow the cursor to go in to "invalid" places | |
set hlsearch " highlight search terms | |
set incsearch " show search matches as you type | |
set list " show line endings | |
" Load matchit (% to bounce from do to end, etc.) | |
runtime! macros/matchit.vim | |
autocmd BufWritePre * :%s/\s\+$//e " Remove trailing whitespace before saving | |
augroup myfiletypes | |
" Clear old autocmds in group | |
autocmd! | |
" autoindent with two spaces, always expand tabs | |
autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et | |
augroup END | |
colorscheme railscasts " Use the railscasts color scheme | |
set gfn=Bitsteam\ Vera\ Sans\ Mono\ 12 " Use the Bitstream font |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment