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 5a33022f2de3f1021300000d

Array propagate

Complete the array with the keys as part of the value

Start file
$arr = [
    'one_option' => '',
    'other' => '',
    'created_at' => '',
    'updated_at' => ''
]
End file
$arr = [
    'one_option' => $row['one_option'],
    'other' => $row['other'],
    'created_at' => $row['created_at'],
    'updated_at' => $row['updated_at']
]

View Diff

2,6c2,6
<     'one_option' => '',
<     'other' => '',
<     'created_at' => '',
<     'updated_at' => ''
< ]
\ No newline at end of file
---
>     'one_option' => $row['one_option'],
>     'other' => $row['other'],
>     'created_at' => $row['created_at'],
>     'updated_at' => $row['updated_at']
> ]

Solutions by @0xheisenderp:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @oscarmlage

119 active golfers, 338 entries

Solutions by @0xheisenderp:
23
#13 - heisenderp / @0xheisenderp

08/02/2018 at 12:23PM

24
#>39 - heisenderp / @0xheisenderp

08/02/2018 at 12:21PM

24
#>39 - heisenderp / @0xheisenderp

08/02/2018 at 12:23PM

25
#>51 - heisenderp / @0xheisenderp

08/02/2018 at 12:16PM

26
#>58 - heisenderp / @0xheisenderp

08/02/2018 at 12:10PM

28
#>77 - heisenderp / @0xheisenderp

08/02/2018 at 10:25AM

30
#>89 - heisenderp / @0xheisenderp

08/02/2018 at 10:22AM

32
#>94 - heisenderp / @0xheisenderp

08/02/2018 at 10:18AM

32
#>94 - heisenderp / @0xheisenderp

08/02/2018 at 10:28AM

33
#>97 - heisenderp / @0xheisenderp

08/02/2018 at 10:13AM