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

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

110 active golfers, 311 entries

Solutions by @rax0m:
23
#3 - Oskar Fridell / @rax0m

02/02/2018 at 03:47PM

24
#>34 - Oskar Fridell / @rax0m

02/02/2018 at 03:45PM

25
#>45 - Oskar Fridell / @rax0m

02/02/2018 at 03:44PM

26
#>53 - Oskar Fridell / @rax0m

02/02/2018 at 03:42PM

28
#>66 - Oskar Fridell / @rax0m

02/02/2018 at 03:41PM

29
#>76 - Oskar Fridell / @rax0m

02/02/2018 at 03:40PM

35
#>90 - Oskar Fridell / @rax0m

02/02/2018 at 03:38PM

48
#>103 - Oskar Fridell / @rax0m

02/02/2018 at 03:34PM