Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5078889ceedfc90002000047

Python to Ruby

Convert this Python code to Ruby. NOTE: This program likely won't run.

Start file
class PythonToRuby:
  def add(x, y):
    x + y

  n = add(1 + 1)
End file
class PythonToRuby
	def add(x, y)
		x + y
	end

	n = add(1, 2)
end

View Diff

1,3c1,4
< class PythonToRuby:
<   def add(x, y):
<     x + y
---
> class PythonToRuby
> 	def add(x, y)
> 		x + y
> 	end
5c6,7
<   n = add(1 + 1)
---
> 	n = add(1, 2)
> end

Solutions by @_mhinz_:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @dynamic_library

61 active golfers, 204 entries

Solutions by @_mhinz_:
25
#6 - Marco Hinz / @_mhinz_

05/28/2013 at 01:43PM

27
#>26 - Marco Hinz / @_mhinz_

05/28/2013 at 01:32PM

27
#>26 - Marco Hinz / @_mhinz_

05/28/2013 at 01:33PM

31
#>31 - Marco Hinz / @_mhinz_

05/28/2013 at 01:24PM

33
#>33 - Marco Hinz / @_mhinz_

05/28/2013 at 01:16PM

35
#>35 - Marco Hinz / @_mhinz_

05/28/2013 at 01:09PM

41
#>45 - Marco Hinz / @_mhinz_

05/28/2013 at 01:02PM