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

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

4195 active golfers, 16061 entries

Solutions by @LewisGuignard:
10
#852 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:36PM

10
#>852 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:36PM

11
#>1186 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:35PM

12
#>1373 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:21PM

12
#>1373 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:24PM

13
#>1412 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:20PM

14
#>1842 - Lewis Guignard / @LewisGuignard

04/16/2019 at 03:10AM

14
#>1842 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:19PM

15
#>2297 - Lewis Guignard / @LewisGuignard

04/16/2019 at 03:07AM

15
#>2297 - Lewis Guignard / @LewisGuignard

04/16/2019 at 03:08AM

16
#>2677 - Lewis Guignard / @LewisGuignard

04/16/2019 at 03:06AM

18
#>3345 - Lewis Guignard / @LewisGuignard

04/16/2019 at 03:03AM

20
#>3664 - Lewis Guignard / @LewisGuignard

04/16/2019 at 03:02AM

28
#>4078 - Lewis Guignard / @LewisGuignard

04/16/2019 at 02:58AM