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

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

4116 active golfers, 15748 entries

Solutions by @heplaphon:
10
#878 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:09PM

11
#>1170 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:08PM

12
#>1351 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:07PM

13
#>1389 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:05PM

14
#>1842 - Eirik Furuseth / @heplaphon

06/11/2019 at 03:45PM

15
#>2264 - Eirik Furuseth / @heplaphon

06/11/2019 at 03:42PM

16
#>2631 - Eirik Furuseth / @heplaphon

06/11/2019 at 03:40PM

17
#>2983 - Eirik Furuseth / @heplaphon

06/11/2019 at 03:37PM

18
#>3289 - Eirik Furuseth / @heplaphon

06/11/2019 at 03:36PM

19
#>3466 - Eirik Furuseth / @heplaphon

06/11/2019 at 03:34PM

20
#>3596 - Eirik Furuseth / @heplaphon

06/10/2019 at 12:11PM

21
#>3693 - Eirik Furuseth / @heplaphon

06/10/2019 at 12:08PM