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

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

119 active golfers, 338 entries

Solutions by @DontBeAlarmed:
23
#27 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:48PM

24
#>45 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:47PM

25
#>53 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:46PM

26
#>59 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:45PM

27
#>64 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:44PM

28
#>81 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:42PM

29
#>85 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:40PM

30
#>89 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:40PM

32
#>96 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:37PM

33
#>98 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:36PM

36
#>99 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:34PM

36
#>99 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:36PM