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

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

4180 active golfers, 15983 entries

Solutions by @imdavidhwang:
14
#2007 - David / @imdavidhwang

11/20/2020 at 05:22PM

15
#>2343 - David / @imdavidhwang

04/19/2020 at 01:23AM

16
#>2704 - David / @imdavidhwang

04/19/2020 at 01:23AM

16
#>2729 - David / @imdavidhwang

11/20/2020 at 05:22PM

17
#>3061 - David / @imdavidhwang

04/19/2020 at 01:21AM

20
#>3674 - David / @imdavidhwang

04/18/2020 at 10:26PM

20
#>3674 - David / @imdavidhwang

04/19/2020 at 01:17AM

20
#>3674 - David / @imdavidhwang

04/19/2020 at 01:20AM

21
#>3766 - David / @imdavidhwang

04/18/2020 at 10:21PM

21
#>3766 - David / @imdavidhwang

04/19/2020 at 01:17AM

21
#>3766 - David / @imdavidhwang

04/19/2020 at 01:18AM

21
#>3766 - David / @imdavidhwang

04/19/2020 at 01:21AM

22
#>3846 - David / @imdavidhwang

04/18/2020 at 10:20PM

22
#>3846 - David / @imdavidhwang

04/18/2020 at 10:26PM

23
#>3906 - David / @imdavidhwang

04/18/2020 at 10:22PM

27
#>4045 - David / @imdavidhwang

04/18/2020 at 10:19PM

28
#>4067 - David / @imdavidhwang

04/18/2020 at 10:25PM

39
#>4151 - David / @imdavidhwang

04/18/2020 at 10:18PM