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 @a24f0600:

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

56 active golfers, 190 entries

Solutions by @a24f0600:
27
#22 - a24f0600 / @a24f0600

11/28/2012 at 04:08PM

34
#>33 - a24f0600 / @a24f0600

11/09/2012 at 03:06PM

41
#>42 - a24f0600 / @a24f0600

11/09/2012 at 02:55PM

45
#>49 - a24f0600 / @a24f0600

11/09/2012 at 02:51PM

48
#>50 - a24f0600 / @a24f0600

11/09/2012 at 02:48PM