Correct indentation for new ruby buffers

This commit is contained in:
Hunter Haugen 2013-04-17 16:55:09 -07:00
parent db48bf8ece
commit fcc4bafd8d

8
.vimrc
View file

@ -371,8 +371,12 @@ if has("autocmd")
\ 0put ='#!/usr/bin/env ruby' | set sw=2 sts=2 et tw=80 |
\ norm G
autocmd BufNewFile,BufRead *.rb,*rhtml,*haml
\ set tabstop=2 shiftwidth=2 softtabstop=2 |
autocmd BufNewFile,BufRead *.rb,Rakefile
\ set tabstop=2 shiftwidth=2 softtabstop=2 expandtab |
\ setf ruby
autocmd BufNewFile,BufRead *rhtml,*haml
\ set tabstop=2 shiftwidth=2 softtabstop=2 expandtab |
\ setf eruby
autocmd BufNewFile,BufRead *.php