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

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 107 remaining solutions by signing in and submitting your own entry
#108 Jurica / @Jurica34581259 - Score: 18 - 11/19/18 @ 21:09
qaJdwdwi <Esc>jj0q@aZZ

0 comments


Created by: @voyeg3r

108 active golfers, 226 entries

Leaderboard (lowest score wins):
9
#1 - Cristian Lupașcu / @clupasq

01/16/2017 at 12:44PM

9
#2 - Kai Yuan / @kentyuan

01/16/2017 at 12:44PM

9
#3 - Smylers / @Smylers2

01/16/2017 at 01:09PM

9
#4 - Urtica dioica / @udioica

01/16/2017 at 01:31PM

9
#5 - Saki Gw / @Sakigw

01/16/2017 at 01:42PM

9
#6 - Jan Bundesmann / @janbundesmann

01/16/2017 at 02:25PM

9
#7 - Hugo Sanchón / @sanchon

01/16/2017 at 02:28PM

9
#8 - Vaughn Cato / @vaughncato

01/16/2017 at 02:29PM

9
#9 - John Braxler / @braxler

01/16/2017 at 02:41PM

9
#10 - 84shin / @ssssww

01/16/2017 at 06:03PM

9
#11 - BlackCap / @BlackCapCoder

01/16/2017 at 06:25PM

9
#12 - Anoop Kumar / @anooplive

01/16/2017 at 07:32PM

9
#13 - Craig Langford / @cllangfo

01/16/2017 at 08:33PM

9
#14 - Michael Buckley / @apolatg

01/16/2017 at 09:51PM

9
#15 - Zutatensuppe / @Zutatensuppe

01/17/2017 at 12:46AM

9
#16 - Campbell Davis / @Campbell_Dav

01/17/2017 at 07:03AM

9
#17 - Jon Krause / @jkrause314

01/17/2017 at 07:13AM

9
#18 - Valacar / @valacar

01/18/2017 at 03:20AM

9
#19 - Abc Def / @phweiss1

01/18/2017 at 09:03AM

9
#20 - J. Cosa / @esoesotracosa

01/18/2017 at 03:21PM

9
#21 - Jon E. Eguiluz / @viroide

01/18/2017 at 05:35PM

9
#22 - Charlie OConor / @charlieoconor

01/19/2017 at 05:45PM

9
#23 - terhorst / @terhorst

01/19/2017 at 11:56PM

9
#24 - Steve Bitner / @fourbitbots

01/20/2017 at 10:13AM

9
#25 - Ítalo Vieira / @italogvieira

01/21/2017 at 12:06AM

9
#26 - Zhihong Liu / @pieapple03

01/21/2017 at 02:53PM

9
#27 - sijinyuan / @sijinyuan

01/22/2017 at 02:12AM

9
#28 - DatBoi / @DatBoi42585694

01/23/2017 at 08:33PM

9
#29 - kli6891 / @kli6891

01/24/2017 at 04:08AM

9
#30 - ZW / @ZW73226885

01/24/2017 at 06:57PM