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

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

115 active golfers, 319 entries

Solutions by @MaryasinS:
24
#36 - Семён Марьясин / @MaryasinS

01/12/2018 at 11:30AM

25
#>47 - Семён Марьясин / @MaryasinS

01/12/2018 at 11:32AM

26
#>55 - Семён Марьясин / @MaryasinS

01/12/2018 at 11:29AM

28
#>67 - Семён Марьясин / @MaryasinS

01/12/2018 at 11:28AM

31
#>88 - Семён Марьясин / @MaryasinS

01/12/2018 at 11:26AM

41
#>103 - Семён Марьясин / @MaryasinS

01/12/2018 at 11:24AM