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
114 remaining solutions by
signing in and submitting your own entry
115 active golfers, 245 entries
Leaderboard (lowest score wins):
9
#1 - Cristian Lupașcu / @clupasq
01/16/2017 at 12:44PM
9
01/16/2017 at 12:44PM
9
01/16/2017 at 01:09PM
9
01/16/2017 at 01:31PM
9
01/16/2017 at 01:42PM
9
01/16/2017 at 02:25PM
9
01/16/2017 at 02:28PM
9
01/16/2017 at 02:29PM
9
01/16/2017 at 02:41PM
9
01/16/2017 at 06:03PM
9
01/16/2017 at 06:25PM
9
01/16/2017 at 07:32PM
9
01/16/2017 at 08:33PM
9
01/16/2017 at 09:51PM
9
01/17/2017 at 12:46AM
9
01/17/2017 at 07:03AM
9
01/17/2017 at 07:13AM
9
01/18/2017 at 03:20AM
9
01/18/2017 at 09:03AM
9
01/18/2017 at 03:21PM
9
01/18/2017 at 05:35PM
9
01/19/2017 at 05:45PM
9
01/19/2017 at 11:56PM
9
01/20/2017 at 10:13AM
9
01/21/2017 at 12:06AM
9
01/21/2017 at 02:53PM
9
01/22/2017 at 02:12AM
9
01/23/2017 at 08:33PM
9
01/24/2017 at 04:08AM
9
01/24/2017 at 06:57PM