Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
" My usual .vimrc. Tired of losing this.
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set bg=dark
filetype plugin on
filetype indent on
au BufRead,BufNewFile *.rhtml set filetype=eruby
au BufRead,BufNewFile *.haml set filetype=haml
autocmd BufWritePre *.erb :%s/\s\+$//e
autocmd BufWritePre *.haml :%s/\s\+$//e
autocmd BufWritePre *.rb :%s/\s\+$//e
syn on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment