" ~/.vim/ftplugin/ruby/ruby.vim " Ruby-specific vim configuration " Tabs are expanded to 4 spaces setlocal tabstop=2 shiftwidth=2 expandtab " Show existing tabs (they can be deleted with :retab) setlocal list " Mappings " " For SonicPi if expand('%:p') =~ 'sonicPi' let mapleader = " " nnoremap C :sp ~/.vim/ftplugin/ruby/ruby.vim nnoremap p :w:!sonic-pi-tool eval-file % nnoremap :w:!sonic-pi-tool stop && sonic-pi-tool eval-file % nnoremap s :!sonic-pi-tool stop let mapleader = "," inoremap loop loop do <+++>end<++>?<+++>cf> endif