diff options
Diffstat (limited to 'ftplugin/ruby.vim')
-rw-r--r-- | ftplugin/ruby.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index fe7315d..2abb417 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -20,3 +20,9 @@ nnoremap <buffer> ZD Obyebug<Esc> " Spring command! -buffer FuckSpring :!bundle exec spring stop + + +" Convert from old to new hash syntax +" Example: :%RubyNewHashSyntax gc +command! -buffer -range -nargs=? RubyNewHashSyntax + \ <line1>,<line2>substitute/\v:<(\w+)> \=\>/\1:/<args> |