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 5462e3f41198b80002512673

I forgot quotes

Oops.

Start file
foo = a
      ab
      abc
End file
foo = "a"
      "ab"
      "abc"

View Diff

1,3c1,3
< foo = a
<       ab
<       abc
---
> foo = "a"
>       "ab"
>       "abc"

Solutions by @thomasyang18:

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

4202 active golfers, 16093 entries

Solutions by @thomasyang18:
12
#1401 - thomasyang18 / @thomasyang18

05/17/2025 at 12:30AM

13
#>1435 - thomasyang18 / @thomasyang18

05/17/2025 at 12:30AM

14
#>2056 - thomasyang18 / @thomasyang18

05/17/2025 at 12:23AM

15
#>2401 - thomasyang18 / @thomasyang18

05/17/2025 at 12:19AM

15
#>2401 - thomasyang18 / @thomasyang18

05/17/2025 at 12:19AM

16
#>2750 - thomasyang18 / @thomasyang18

05/17/2025 at 12:17AM

22
#>3883 - thomasyang18 / @thomasyang18

05/17/2025 at 12:16AM

25
#>4010 - thomasyang18 / @thomasyang18

05/16/2025 at 11:29PM

28
#>4092 - thomasyang18 / @thomasyang18

05/16/2025 at 11:29PM

29
#>4105 - thomasyang18 / @thomasyang18

05/16/2025 at 11:28PM

32
#>4142 - thomasyang18 / @thomasyang18

05/16/2025 at 11:28PM

78
#>4200 - thomasyang18 / @thomasyang18

05/16/2025 at 11:27PM