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 587cab5a0740c90006000006

Combines all items

For each line that starts with the same number I want to combine its contents

Start file
1 2472
1 664
2 2600
10 4135
10 5606
...
End file
1 2472 664
2 2600
10 4135 5606
...

View Diff

1,2c1
< 1 2472
< 1 664
---
> 1 2472 664
4,5c3
< 10 4135
< 10 5606
---
> 10 4135 5606

Solutions by @nickandbro:

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

140 active golfers, 313 entries

Solutions by @nickandbro:
9
#89 - nickGPT / @nickandbro

08/28/2024 at 02:57AM

10
#>133 - nickGPT / @nickandbro

08/28/2024 at 02:57AM

11
#>136 - nickGPT / @nickandbro

08/28/2024 at 02:57AM

12
#>138 - nickGPT / @nickandbro

08/28/2024 at 02:57AM

17
#>139 - nickGPT / @nickandbro

08/28/2024 at 02:57AM

18
#>140 - nickGPT / @nickandbro

08/28/2024 at 02:57AM