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

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

110 active golfers, 311 entries

Solutions by @Ajnasz:
26
#52 - Lajos Koszti / @Ajnasz

12/15/2017 at 11:11AM

29
#>75 - Lajos Koszti / @Ajnasz

12/15/2017 at 10:43AM

32
#>85 - Lajos Koszti / @Ajnasz

12/15/2017 at 10:42AM

33
#>88 - Lajos Koszti / @Ajnasz

12/15/2017 at 10:41AM