All pastes #2092349 Raw Edit

.vimrc

public text v1 · immutable
#2092349 ·published 2011-10-21 22:43 UTC
rendered paste body
set nocompatible        " We're running Vim, not Vi!
syntax on               " Enable syntax highlighting
filetype on             " Enable filetype detection
filetype indent on      " Enable filetype-specific indenting
filetype plugin on      " Enable filetype-specific plugins
set term=xterm-256color " Enable 256-color mode
set nu                  " Enable line numbering

" Load matchit (% to bounce from do to end, etc.)
runtime! macros/matchit.vim

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
	" autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
	autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
	autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
	autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
	autocmd FileType ruby,eruby colorscheme herald
	autocmd FileType ruby,eruby compiler ruby         " Enable compiler support for ruby
	autocmd FileType ruby,eruby map <F5> :make %<CR>  " Bind the compiler to F5
augroup END