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

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

4195 active golfers, 16061 entries

Solutions by @Rt6RjEAJ987Woes:
11
#1178 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:01PM

12
#>1368 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:00PM

13
#>1408 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 12:47PM

14
#>1825 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 12:45PM

15
#>2285 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 12:43PM

16
#>2671 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 12:40PM