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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 606 remaining solutions by signing in and submitting your own entry
#607 Frank Hui / @frankhui - Score: 69 - 12/29/10 @ 06:44
:1,$ s/Subtracts/Adds/<CR>:1,$ s/x/a/<CR>:1,$ s/from/to/<CR>:1,$ s/y/b/<CR>:w<CR>:q<CR>

0 comments


Created by: @wolever

607 active golfers, 1646 entries

Leaderboard (lowest score wins):
23
#271 - Dj Vimgolf / @dj_vimgolf

12/31/2011 at 01:51AM

23
#272 - Ashley Feniello / @AshleyFen

01/29/2012 at 05:35AM

23
#273 - Jyun-Fan Tsai / @fakecolor

02/04/2012 at 01:13PM

23
#274 - drupalovereasy / @drupalovereasy

04/27/2012 at 03:11AM

23
#275 - Daniel Lundin / @danielundin

05/10/2012 at 12:09PM

23
#276 - OMF / @exolon

05/29/2012 at 10:58PM

23
#277 - Benoit Thiell / @benoitthiell

07/19/2012 at 09:35PM

23
#278 - Andrey Yankin / @YankinAndrey

07/20/2012 at 11:04AM

23
#279 - Dan Oneata / @DanOneata

08/07/2012 at 07:01AM

23
#280 - Stephen Fiorelli / @sfiorell2

08/21/2012 at 08:18PM

23
#281 - Darcy Parker / @DarcyParker

10/17/2012 at 01:24PM

23
#282 - André / @Joschasa

12/24/2012 at 09:38PM

23
#283 - Claes Mogren / @claesmogren

03/23/2013 at 07:43PM

23
#284 - Brent Carmer / @brent_carmer

04/09/2013 at 01:44AM

23
#285 - RobertT / @techrt2050

07/10/2013 at 02:10AM

23
#286 - Dom Armstrong / @dom_cycleface

08/26/2013 at 09:15AM

23
#287 - Hachez Floran / @FloranHachez

09/04/2013 at 08:33AM

23
#288 - brett / @brettyukich

09/21/2013 at 09:26AM

23
#289 - Steven Weller / @suweller

09/27/2013 at 11:06AM

23
#290 - bunnies president / @bunnies4p

10/27/2013 at 10:34PM

23
#291 - Casey Dwyer / @caseydwyer

11/04/2013 at 02:10AM

23
#292 - US Dollar Price / @USDollarPrice

11/06/2013 at 05:59AM

23
#293 - gary.klindt@googlema / @garstekli

11/26/2013 at 04:30PM

23
#294 - Zach Kemp / @zvksf

12/20/2013 at 12:58AM

23
#295 - John Gray Cole / @johngraycole

02/14/2014 at 01:17AM

23
#296 - Robert Siemieniec / @rsiemieniec

04/10/2014 at 10:08AM

23
#297 - lastsseldon / @lastsseldon

05/10/2014 at 03:34AM

23
#298 - Ram Tamtam / @ramtamtamtam

06/30/2014 at 09:57AM

23
#299 - playalong / @playwithit42

07/16/2014 at 08:52AM

23
#300 - Rails Girls Tel-Aviv / @RailsGirlsTLV

07/27/2014 at 02:08PM