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

0 comments


Created by: @voyeg3r

139 active golfers, 307 entries

Leaderboard (lowest score wins):
10
#121 - William Dankspeare / @will_dankspeare

06/29/2017 at 05:55PM

10
#122 - Ben Hill / @KaizenSoze70

06/30/2017 at 06:14PM

10
#123 - Mihai / @mihaicristiant

01/14/2019 at 12:54PM

10
#124 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 08:50PM

10
#125 - Michel Viktor / @tomkpz

07/26/2021 at 02:53PM

10
#126 - z00master / @z00master

08/19/2022 at 03:54PM

10
#127 - James Marshall / @astrophd

10/21/2022 at 03:08AM

10
#128 - vimgolfaccfekxh / @vimgolfaccfekxh

10/23/2022 at 01:45PM

10
#129 - e_e / @eleloi

02/20/2023 at 11:36PM

10
#130 - Olivier Bégassat / @zk_evm

06/12/2023 at 11:40PM

10
#131 - Luoyb / @Luoyb

11/17/2023 at 05:55AM

10
#132 - jonas-grobe / @jonas-grobe

02/03/2024 at 09:04PM

11
#133 - Bruce Horner / @HerbConjurer

05/16/2017 at 01:57AM

11
#134 - Edouard Piette / @EdPiette

05/19/2017 at 02:05PM

11
#135 - Brandon / @Brandon10678836

08/26/2022 at 01:13PM

12
#136 - Matt Walsh / @wattmalsh

02/02/2017 at 09:50PM

12
#137 - Aurélien Hervé / @aurel_herve

04/21/2017 at 02:21PM

17
#138 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 02:36PM

18
#139 - Jurica / @Jurica34581259

11/19/2018 at 09:09PM