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

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

61 active golfers, 204 entries

Solutions by @anton_davydov:
25
#9 - Anton Davydov / @anton_davydov

01/04/2014 at 04:38PM

25
#>9 - Anton Davydov / @anton_davydov

01/04/2014 at 04:39PM

27
#>26 - Anton Davydov / @anton_davydov

01/04/2014 at 04:27PM

28
#>29 - Anton Davydov / @anton_davydov

01/04/2014 at 04:25PM

29
#>30 - Anton Davydov / @anton_davydov

01/04/2014 at 04:22PM

31
#>31 - Anton Davydov / @anton_davydov

01/04/2014 at 04:17PM

35
#>35 - Anton Davydov / @anton_davydov

01/04/2014 at 04:13PM

36
#>38 - Anton Davydov / @anton_davydov

01/04/2014 at 04:09PM

42
#>47 - Anton Davydov / @anton_davydov

01/04/2014 at 03:59PM

45
#>52 - Anton Davydov / @anton_davydov

01/04/2014 at 03:55PM

63
#>60 - Anton Davydov / @anton_davydov

01/04/2014 at 03:54PM

73
#>61 - Anton Davydov / @anton_davydov

01/04/2014 at 03:52PM