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 54a5b367b5be62000263f9ef

range(10) digit rotation

This is a data generator challenge or some kind of gift..

Start file
0 1 2 3 4 5 * 7 8 9
1 2 3 4 5 6 * 8 9 0
2 3 4 5 6 7 * 9 0 1
3 4 5 6 7 8 * 0 1 2
4 5 6 7 8 9 * 1 2 3
5 6 7 8 9 0 * 2 3 4
* * * * * * * * * *
7 8 9 0 1 2 * 4 5 6
8 9 0 1 2 3 * 5 6 7
9 0 1 2 3 4 * 6 7 8
End file
0 1 2 3 4 * 6 7 8 9
1 2 3 4 * 6 7 8 9 0
2 3 4 * 6 7 8 9 0 1
3 4 * 6 7 8 9 0 1 2
4 * 6 7 8 9 0 1 2 3
* 6 7 8 9 0 1 2 3 4
6 7 8 9 0 1 2 3 4 *
7 8 9 0 1 2 3 4 * 6
8 9 0 1 2 3 4 * 6 7
9 0 1 2 3 4 * 6 7 8

View Diff

1,9c1,9
< 0 1 2 3 4 5 * 7 8 9
< 1 2 3 4 5 6 * 8 9 0
< 2 3 4 5 6 7 * 9 0 1
< 3 4 5 6 7 8 * 0 1 2
< 4 5 6 7 8 9 * 1 2 3
< 5 6 7 8 9 0 * 2 3 4
< * * * * * * * * * *
< 7 8 9 0 1 2 * 4 5 6
< 8 9 0 1 2 3 * 5 6 7
---
> 0 1 2 3 4 * 6 7 8 9
> 1 2 3 4 * 6 7 8 9 0
> 2 3 4 * 6 7 8 9 0 1
> 3 4 * 6 7 8 9 0 1 2
> 4 * 6 7 8 9 0 1 2 3
> * 6 7 8 9 0 1 2 3 4
> 6 7 8 9 0 1 2 3 4 *
> 7 8 9 0 1 2 3 4 * 6
> 8 9 0 1 2 3 4 * 6 7

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 21 remaining solutions by signing in and submitting your own entry
#22 Matt / @mcr05 - Score: 24 - 01/02/15 @ 10:28
9DYPJ0qqdwY9wlD"0pq9@qZZ

0 comments


Created by: @mcr05

22 active golfers, 38 entries

Leaderboard (lowest score wins):
18
#1 - Urtica dioica / @udioica

01/01/2015 at 10:41PM

18
#2 - Pavlo Klets / @p01nt

01/01/2015 at 10:49PM

18
#3 - Jake Eskel / @JakeEskel

01/02/2015 at 04:51AM

18
#4 - mnx / @mnxx

01/02/2015 at 09:23AM

18
#5 - John Braxler / @braxler

01/02/2015 at 02:28PM

18
#6 - Petro Тrouq / @zulolosi

01/02/2015 at 02:57PM

18
#7 - Maximiliano Padulo / @mpadulo

01/02/2015 at 09:25PM

18
#8 - Carlos A Henríquez Q / @lagunex

01/16/2015 at 05:23PM

18
#9 - Jon Krause / @jkrause314

01/25/2016 at 01:05AM

18
#10 - 朱国栋 / @GuodongZhu

06/05/2016 at 03:41AM

18
#11 - 杨洋 / @176795444

07/03/2017 at 10:00AM

18
#12 - Daniël De Koker / @daniel_koker

07/07/2018 at 07:49AM

18
#13 - Bruno Cunha / @bruncun

05/13/2019 at 12:23AM

18
#14 - Peppa Pig / @PeppaPigSg

07/03/2024 at 03:03AM

18
#15 - nickGPT / @nickandbro

08/28/2024 at 04:42AM

19
#16 - Patrick Knosowski / @KnoP8024

05/12/2016 at 10:47PM

20
#17 - martin tourneboeuf / @martintournebo1

06/03/2017 at 04:23PM

21
#18 - BZ_VG / @BZ_VG

03/01/2016 at 08:34AM

21
#19 - Cristian Lupașcu / @clupasq

03/20/2016 at 12:41PM

21
#20 - Remus Dalrymple / @bornintheflames

05/09/2017 at 08:13AM

21
#21 - jakeroberts / @jakeroberts

05/29/2017 at 03:29PM

24
#22 - Matt / @mcr05

01/02/2015 at 10:28AM