Created
May 28, 2010 00:55
-
-
Save cpm/416593 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
" 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