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

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

4161 active golfers, 15931 entries

Solutions by @FergusLongley:
10
#769 - Fergus Longley / @FergusLongley

08/17/2018 at 04:23PM

11
#>1159 - Fergus Longley / @FergusLongley

08/17/2018 at 04:20PM

12
#>1359 - Fergus Longley / @FergusLongley

08/17/2018 at 04:19PM

13
#>1392 - Fergus Longley / @FergusLongley

08/17/2018 at 04:18PM

14
#>1773 - Fergus Longley / @FergusLongley

08/17/2018 at 04:16PM

16
#>2637 - Fergus Longley / @FergusLongley

08/17/2018 at 04:14PM

17
#>2976 - Fergus Longley / @FergusLongley

08/17/2018 at 04:12PM

18
#>3285 - Fergus Longley / @FergusLongley

08/17/2018 at 04:10PM

19
#>3488 - Fergus Longley / @FergusLongley

08/17/2018 at 04:09PM

20
#>3617 - Fergus Longley / @FergusLongley

08/17/2018 at 04:06PM

21
#>3721 - Fergus Longley / @FergusLongley

08/17/2018 at 04:03PM

22
#>3806 - Fergus Longley / @FergusLongley

08/17/2018 at 04:02PM

23
#>3871 - Fergus Longley / @FergusLongley

08/17/2018 at 03:59PM

26
#>3979 - Fergus Longley / @FergusLongley

08/17/2018 at 03:58PM