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

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

4161 active golfers, 15931 entries

Solutions by @ex1c:
10
#849 - Jonas / @ex1c

04/11/2019 at 12:01PM

11
#>1179 - Jonas / @ex1c

04/11/2019 at 12:00PM

12
#>1364 - Jonas / @ex1c

04/11/2019 at 11:59AM

13
#>1401 - Jonas / @ex1c

04/11/2019 at 11:57AM

14
#>1829 - Jonas / @ex1c

04/11/2019 at 11:56AM

15
#>2279 - Jonas / @ex1c

04/11/2019 at 11:54AM

16
#>2657 - Jonas / @ex1c

04/11/2019 at 11:53AM

17
#>3010 - Jonas / @ex1c

04/11/2019 at 11:52AM

20
#>3634 - Jonas / @ex1c

04/11/2019 at 11:49AM

20
#>3634 - Jonas / @ex1c

04/11/2019 at 11:52AM

25
#>3957 - Jonas / @ex1c

04/11/2019 at 11:49AM