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

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

4188 active golfers, 16014 entries

Solutions by @andyfoster:
10
#1137 - Andy / @andyfoster

10/15/2024 at 10:49AM

14
#>2046 - Andy / @andyfoster

10/15/2024 at 09:26PM

15
#>2392 - Andy / @andyfoster

04/06/2024 at 01:41AM

15
#>2392 - Andy / @andyfoster

04/06/2024 at 01:45AM

16
#>2742 - Andy / @andyfoster

04/06/2024 at 01:37AM

16
#>2742 - Andy / @andyfoster

04/06/2024 at 01:39AM

16
#>2743 - Andy / @andyfoster

10/15/2024 at 10:48AM

16
#>2743 - Andy / @andyfoster

10/15/2024 at 10:54AM

17
#>3088 - Andy / @andyfoster

04/06/2024 at 01:36AM