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

4225 active golfers, 16239 entries

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

05/17/2025 at 12:30AM

13
#>1446 - thomasyang18 / @thomasyang18

05/17/2025 at 12:30AM

14
#>2069 - thomasyang18 / @thomasyang18

05/17/2025 at 12:23AM

15
#>2415 - thomasyang18 / @thomasyang18

05/17/2025 at 12:19AM

15
#>2415 - thomasyang18 / @thomasyang18

05/17/2025 at 12:19AM

16
#>2766 - thomasyang18 / @thomasyang18

05/17/2025 at 12:17AM

22
#>3902 - thomasyang18 / @thomasyang18

05/17/2025 at 12:16AM

25
#>4030 - thomasyang18 / @thomasyang18

05/16/2025 at 11:29PM

28
#>4112 - thomasyang18 / @thomasyang18

05/16/2025 at 11:29PM

29
#>4125 - thomasyang18 / @thomasyang18

05/16/2025 at 11:28PM

32
#>4162 - thomasyang18 / @thomasyang18

05/16/2025 at 11:28PM

78
#>4223 - thomasyang18 / @thomasyang18

05/16/2025 at 11:27PM