" Ruby vim settings " Indentation setlocal expandtab setlocal tabstop=2 setlocal softtabstop=2 setlocal shiftwidth=2 " Don't preserve indentation on empty lines inoremap nnoremap o o nnoremap O O " Debugging nnoremap Zd obyebug nnoremap ZD Obyebug " Spring command! -buffer FuckSpring :!bundle exec spring stop " Convert from old to new hash syntax " Example: :%RubyNewHashSyntax gc command! -buffer -range -nargs=? RubyNewHashSyntax \ ,substitute/\v:<(\w+)> \=\>/\1:/