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

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

595 active golfers, 1596 entries

Solutions by @chrisatanasian:
22
#215 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:04AM

22
#>215 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:05AM

23
#>324 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:04AM

24
#>351 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:03AM

25
#>384 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:02AM

26
#>429 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:02AM

28
#>514 - Chris Atanasian / @chrisatanasian

11/24/2023 at 07:01AM