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
...
1,2c1
< 1 2472
< 1 664
---
> 1 2472 664
4,5c3
< 10 4135
< 10 5606
---
> 10 4135 5606
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock
139 remaining solutions by
signing in and submitting your own entry
140 active golfers, 313 entries
Leaderboard (lowest score wins):
06/17/2017 at 04:25PM
07/08/2017 at 05:37AM
11/13/2017 at 02:10PM
11/28/2017 at 07:23AM
04/29/2018 at 11:10PM
07/24/2018 at 08:43PM
11/29/2018 at 02:37PM
12/06/2018 at 02:38AM
04/16/2019 at 01:38PM
06/07/2019 at 02:55AM
06/25/2019 at 08:20AM
09/17/2019 at 10:01PM
12/02/2019 at 10:59AM
01/30/2020 at 04:41PM
03/26/2020 at 09:16AM
06/25/2020 at 01:56AM
02/17/2021 at 08:20PM
03/10/2021 at 08:17AM
02/03/2022 at 10:31PM
05/30/2022 at 09:55PM
09/25/2022 at 11:43PM
10/01/2022 at 11:28AM
10/19/2022 at 03:24PM
11/07/2022 at 12:18AM
06/17/2023 at 12:07PM
09/27/2023 at 03:49PM
05/19/2024 at 05:07AM
05/29/2024 at 08:18PM
08/28/2024 at 02:57AM
01/16/2017 at 12:15PM