Created
December 14, 2010 21:18
-
-
Save lucky/741111 to your computer and use it in GitHub Desktop.
Make vim indent 2 spaces for ruby and scala files only
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
" Make vim indent 2 spaces for ruby and scala files only | |
filetype plugin indent on | |
set sw=4 | |
set ts=4 | |
:autocmd Filetype ruby set softtabstop=2 | |
:autocmd Filetype ruby set sw=2 | |
:autocmd Filetype ruby set ts=2 | |
:autocmd Filetype scala set softtabstop=2 | |
:autocmd Filetype scala set sw=2 | |
:autocmd Filetype scala set ts=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment