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

0 comments


Created by: @voyeg3r

140 active golfers, 313 entries

Leaderboard (lowest score wins):
9
#31 - Bill Ruddock / @biinari

01/25/2017 at 02:41PM

9
#32 - Birger / @Birger_Ni

01/26/2017 at 07:48AM

9
#33 - nitin chadha / @upcomingnewton

01/26/2017 at 09:30AM

9
#34 - Daniel Hogan / @danielhogan21

01/27/2017 at 04:58AM

9
#35 - leroy / @leroyalien

01/28/2017 at 06:57AM

9
#36 - Harold Treen / @haroldtreen

01/30/2017 at 07:50PM

9
#37 - Alexander Cederblad / @alexceder

02/02/2017 at 02:00AM

9
#38 - Patrick Sanan / @patricksanan

02/03/2017 at 03:14PM

9
#39 - aselaIllayaparachchi / @asela38

02/05/2017 at 02:28AM

9
#40 - setNull / @dadaojiemo

02/06/2017 at 04:11AM

9
#41 - Petro Тrouq / @zulolosi

02/12/2017 at 06:41PM

9
#42 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 01:49PM

9
#43 - eban / @eban

02/17/2017 at 01:16PM

9
#44 - Tim Grebien / @tiggg

02/21/2017 at 01:39PM

9
#45 - Dan Prince / @danj_prince

02/25/2017 at 01:18AM

9
#46 - Alexander Bessonov / @nonsleepr

03/13/2017 at 10:02PM

9
#47 - Evgeny`s Kindle / @EvgenyKindle

03/19/2017 at 10:15AM

9
#48 - Ilya Shakirov / @aelaau

03/20/2017 at 09:25AM

9
#49 - Andreas Anderbach / @anderbacha

03/20/2017 at 03:47PM

9
#50 - Zachary Neubert / @Mr_Saturn16347

03/24/2017 at 01:07AM

9
#51 - Tyler Holien / @tylerholien

03/27/2017 at 04:19AM

9
#52 - Reuben Narkwo / @reubwo

04/04/2017 at 07:52PM

9
#53 - 20speedvegan / @ashkevinm

04/12/2017 at 05:23PM

9
#54 - Colby Hamilton / @ColbyHamilton5

04/21/2017 at 06:25PM

9
#55 - 梧桐王子 / @WutongYujie

04/26/2017 at 01:04AM

9
#56 - Chris Robertson / @chrisxrobertson

05/09/2017 at 12:04PM

9
#57 - linealloop / @linealloop

05/18/2017 at 11:45PM

9
#58 - Melvin Cheung / @MelvinCheung

05/25/2017 at 05:02AM

9
#59 - Sergey Lisakov / @pozitron57

06/06/2017 at 08:25PM

9
#60 - David Gustavsson / @mrGustaphe

06/14/2017 at 02:55PM