Skip to content

Instantly share code, notes, and snippets.

@lucky
Created December 14, 2010 21:18
Show Gist options
  • Save lucky/741111 to your computer and use it in GitHub Desktop.
Save lucky/741111 to your computer and use it in GitHub Desktop.
Make vim indent 2 spaces for ruby and scala files only
" 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