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

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

4181 active golfers, 15989 entries

Solutions by @ChrisHampsonGTD:
10
#471 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:22AM

10
#>471 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:24AM

10
#>471 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 10:53AM

10
#>472 - Chris Hampson / @ChrisHampsonGTD

10/11/2016 at 01:17AM

10
#>472 - Chris Hampson / @ChrisHampsonGTD

10/11/2016 at 01:19AM

12
#>1297 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:21AM

14
#>1665 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:18AM

14
#>1665 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:20AM

14
#>1665 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:24AM

16
#>2535 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:17AM

17
#>2870 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:16AM

18
#>3186 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:09AM

18
#>3186 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:16AM