Created
August 20, 2012 11:40
-
-
Save ptitfred/3403439 to your computer and use it in GitHub Desktop.
Ruby VIM configuration
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
" F9 key will trigger syntax validation | |
autocmd FileType ruby map <F9> :w<CR>:!ruby -c %<CR> | |
" Edition configuration (tabs=2spaces & autoindent) | |
fun! SetupRuby() | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set autoindent | |
endfun | |
au BufNewFile,BufRead *.rb call SetupRuby() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment