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 53ab5ade4367c700025ce66a

Shuffle puzzle

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

Start file
3
       
4
       
2
1
       
3
       
1
2
       
5
       
8
End file
1
       
1
       
3
2
       
5
       
8
3
       
2
       
4

View Diff

1,3d0
< 3
<       4
<       2
5d1
<       3
6a3
>       3
9a7,9
> 3
>       2
>       4

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 103 remaining solutions by signing in and submitting your own entry
#104 Jurica / @Jurica34581259 - Score: 28 - 12/12/18 @ 11:50
3jVjjd1GP6jVGd2kPkddkPGddPZZ

0 comments


Created by: @udioica

104 active golfers, 346 entries

Leaderboard (lowest score wins):
13
#1 - Adit Cahya Ramadhan / @aditcr8

06/26/2014 at 01:26AM

13
#2 - Urtica dioica / @udioica

06/26/2014 at 02:42AM

13
#3 - John Braxler / @braxler

06/27/2014 at 04:30PM

13
#4 - Petro Тrouq / @zulolosi

06/27/2014 at 07:21PM

13
#5 - Deniz Oktay / @cloud_boy

06/27/2014 at 11:15PM

13
#6 - alexscott / @4l3xsc0tt

06/30/2014 at 03:28PM

13
#7 - Yann Moisan / @YannMoisan

07/01/2014 at 08:14AM

13
#8 - Pavlo Klets / @p01nt

07/01/2014 at 10:24AM

13
#9 - Nico Lehmann / @nilehmann

07/06/2014 at 01:49AM

13
#10 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 09:13PM

13
#11 - Bart / @oneofmanybarts

07/08/2014 at 01:50PM

13
#12 - Chad Ostler / @ostlerc

07/08/2014 at 11:05PM

13
#13 - Alexey Fedorov / @waterlink000

07/09/2014 at 04:23PM

13
#14 - Yoonho Lee / @ID_einet89

07/23/2014 at 10:25AM

13
#15 - Walker Boh / @walker_boh

10/12/2015 at 12:43PM

13
#16 - Turkey Man / @lvturkeyman

11/26/2017 at 09:30AM

13
#17 - BarbaJol / @drpproteus

01/10/2018 at 04:44PM

13
#18 - Mihai / @mihaicristiant

02/28/2019 at 12:08PM

13
#19 - Miłosz Łakomy / @foobar01123

05/31/2020 at 10:47AM

13
#20 - russellzhaomao / @russellzhaomao

06/12/2022 at 01:07PM

13
#21 - Janzen / @__Coos

09/29/2022 at 05:32AM

13
#22 - Don'tBeAlarmed / @DontBeAlarmed

05/31/2024 at 09:13AM

13
#23 - Peppa Pig / @PeppaPigSg

08/10/2024 at 12:14AM

13
#24 - nickGPT / @nickandbro

08/28/2024 at 05:44PM

14
#25 - John Meisner / @jmeisned

06/26/2014 at 02:06AM

14
#26 - Kerson Hsiao / @KersonHsiao

06/26/2014 at 11:56AM

14
#27 - ゆきみ / @edp02

06/26/2014 at 12:06PM

14
#28 - Kai Yuan / @kentyuan

06/26/2014 at 02:19PM

14
#29 - Mandy Choi / @mundi_c

06/27/2014 at 10:03PM

14
#30 - Stephen / @StephenPek

06/29/2014 at 05:15AM