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
#61 - John Smith / @johns32768

06/17/2017 at 04:25PM

9
#62 - Stop and think / @ms_uncountable

07/08/2017 at 05:37AM

9
#63 - Turkey Man / @lvturkeyman

11/13/2017 at 02:10PM

9
#64 - david quarles / @davidequarles

11/28/2017 at 07:23AM

9
#65 - DHM / @DHM29978992

04/29/2018 at 11:10PM

9
#66 - qed / @qed13308565

07/24/2018 at 08:43PM

9
#67 - name / @name65894813

11/29/2018 at 02:37PM

9
#68 - Dax / @zacoxi

12/06/2018 at 02:38AM

9
#69 - alekfed / @alek_fed

04/16/2019 at 01:38PM

9
#70 - Ben M / @Sweet_Scientist

06/07/2019 at 02:55AM

9
#71 - majo senf / @majo_senf

06/25/2019 at 08:20AM

9
#72 - Cassandra / @kascein

09/17/2019 at 10:01PM

9
#73 - Lory / @Lory46845742

12/02/2019 at 10:59AM

9
#74 - Miłosz Łakomy / @foobar01123

01/30/2020 at 04:41PM

9
#75 - Ryan Nevius / @ryannevius

03/26/2020 at 09:16AM

9
#76 - RockerZZY / @rocker_zzy

06/25/2020 at 01:56AM

9
#77 - Jung Yeon Park / @park_jungy

02/17/2021 at 08:20PM

9
#78 - 김범준 / @kmbmjn

03/10/2021 at 08:17AM

9
#79 - Jean George / @JeanGeo20504212

02/03/2022 at 10:31PM

9
#80 - Alex / @AlexanderHeatl2

05/30/2022 at 09:55PM

9
#81 - Manavi Ghorpade / @ManaviGhorpade

09/25/2022 at 11:43PM

9
#82 - Janzen / @__Coos

10/01/2022 at 11:28AM

9
#83 - Omar Alawadhi / @OmarAla59544225

10/19/2022 at 03:24PM

9
#84 - キムラ・OPEL・ユウジ / @kimurayuuji79

11/07/2022 at 12:18AM

9
#85 - someone / @IKvacenok

06/17/2023 at 12:07PM

9
#86 - moh ayaya / @AyayaMoh

09/27/2023 at 03:49PM

9
#87 - Peppa Pig / @PeppaPigSg

05/19/2024 at 05:07AM

9
#88 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 08:18PM

9
#89 - nickGPT / @nickandbro

08/28/2024 at 02:57AM

10
#90 - Chris Hughes / @ChristofHughes

01/16/2017 at 12:15PM