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

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

59 active golfers, 196 entries

Solutions by @SharpsawDotOrg:
28
#27 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:40AM

29
#>29 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:38AM

30
#>29 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:42AM

31
#>29 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:29AM

31
#>29 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:37AM

32
#>31 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:43AM

35
#>34 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:28AM

39
#>42 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:24AM

40
#>43 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:19AM

45
#>51 - ☈king / @SharpsawDotOrg

10/13/2012 at 02:20AM