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

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

4180 active golfers, 15983 entries

Solutions by @mihaicristiant:
10
#652 - Mihai / @mihaicristiant

11/15/2017 at 03:35AM

10
#>652 - Mihai / @mihaicristiant

11/15/2017 at 03:38AM

12
#>1343 - Mihai / @mihaicristiant

11/15/2017 at 03:33AM

12
#>1362 - Mihai / @mihaicristiant

11/27/2018 at 11:27AM

14
#>1716 - Mihai / @mihaicristiant

10/31/2017 at 06:45PM

15
#>2270 - Mihai / @mihaicristiant

11/27/2018 at 11:30AM

16
#>2585 - Mihai / @mihaicristiant

10/31/2017 at 06:39PM

16
#>2585 - Mihai / @mihaicristiant

10/31/2017 at 06:43PM

18
#>3240 - Mihai / @mihaicristiant

11/15/2017 at 03:37AM