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

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

4162 active golfers, 15932 entries

Solutions by @badangos:
10
#1086 - Leo / @badangos

11/12/2020 at 08:48AM

11
#>1231 - Leo / @badangos

11/12/2020 at 08:47AM

12
#>1383 - Leo / @badangos

11/12/2020 at 08:46AM

13
#>1419 - Leo / @badangos

11/12/2020 at 08:46AM

14
#>2001 - Leo / @badangos

11/12/2020 at 08:44AM

14
#>2001 - Leo / @badangos

11/12/2020 at 08:45AM

16
#>2719 - Leo / @badangos

11/12/2020 at 08:43AM

22
#>3840 - Leo / @badangos

11/12/2020 at 08:43AM

28
#>4053 - Leo / @badangos

11/12/2020 at 08:42AM

203
#>4161 - Leo / @badangos

11/12/2020 at 08:40AM

454
#>4162 - Leo / @badangos

11/12/2020 at 08:41AM