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 4d1a71b5b8cb340932000109

Change the content of a string

This docstring is a complete lie. Fix it.

Start file
def add(a, b):
    """ Subtracts "x" from "y" """
    return a + b
End file
def add(a, b):
    """ Adds "a" to "b" """
    return a + b

View Diff

2c2
<     """ Subtracts "x" from "y" """
---
>     """ Adds "a" to "b" """

Solutions by @jeyant1987:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @wolever

558 active golfers, 1476 entries

Solutions by @jeyant1987:
24
#310 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 08:10AM

24
#>310 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 08:12AM

25
#>340 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 08:07AM

26
#>373 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 07:52AM

27
#>415 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 07:46AM

27
#>415 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 07:51AM

28
#>476 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 07:50AM

31
#>515 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 06:54AM

32
#>527 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 07:50AM

34
#>535 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 06:57AM

37
#>544 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 06:51AM

40
#>547 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 06:53AM

42
#>547 - Jeyant Randhawa / @jeyant1987

05/17/2011 at 06:48AM