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

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

4115 active golfers, 15740 entries

Solutions by @rwrdb:
10
#1120 - Jeremy Campbell / @rwrdb

12/09/2021 at 04:00PM

10
#>1120 - Jeremy Campbell / @rwrdb

12/09/2021 at 04:00PM

11
#>1223 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:59PM

12
#>1373 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:58PM

13
#>1405 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:58PM

14
#>2005 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:57PM

15
#>2340 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:56PM

16
#>2690 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:56PM

17
#>3034 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:55PM

18
#>3342 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:55PM

19
#>3507 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:53PM

20
#>3634 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:51PM

24
#>3893 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:50PM

27
#>3985 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:49PM

28
#>4006 - Jeremy Campbell / @rwrdb

12/09/2021 at 03:46PM