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 52409a089e26e1000200006d

Ninjas Leaderboard

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

Start file
['l', 'b', '@', 'o', 's', 'd', 'd', '.', 'L', 'a', 'm', 'o', 'f', 'c', 'm', 'g', 'r', 'v', 'r', 'i', 'o', 'e', 'a', 'j', 'e', 'n', 'i', 'n', '_', 'a']
[25, 19, 27, 23, 9, 4, 28, 8, 21, 22, 6, 24, 18, 1, 11, 29, 16, 5, 2, 17, 26, 10, 15, 20, 0, 12, 7, 13, 3, 14]
End file
['l', 'b', '@', 'o', 's', 'd', 'd', '.', 'L', 'a', 'm', 'o', 'f', 'c', 'm', 'g', 'r', 'v', 'r', 'i', 'o', 'e', 'a', 'j', 'e', 'n', 'i', 'n', '_', 'a']
[25, 19, 27, 23, 9, 4, 28, 8, 21, 22, 6, 24, 18, 1, 11, 29, 16, 5, 2, 17, 26, 10, 15, 20, 0, 12, 7, 13, 3, 14]
ninjas_Leaderboard@vimgolf.com

View Diff

2a3
> ninjas_Leaderboard@vimgolf.com

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 40 remaining solutions by signing in and submitting your own entry
#41 MP / @Enemy_m - Score: 77 - 09/26/13 @ 18:40
y$:let a=<C-R>"<CR>+y$:let i=<C-R>"<CR>:for n in range(30)|pu=a[i[n]]|endfo<CR>3GqaJxq28@abXZZ

@Enemy_m: Learned some tricks from ninja Learderboard !

@zulolosi: 64 keystrokes pure vimscript solution: :$pu=join(map(eval(getline(2)),'eval(getline(1))[v:val]'),'')<CR>ZZ

2 comments


Created by: @zulolosi

41 active golfers, 99 entries

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

09/23/2013 at 09:44PM

25
#2 - Stefan Schmidt / @stafue

12/06/2013 at 03:17PM

25
#3 - John Braxler / @braxler

05/22/2014 at 05:12PM

25
#4 - Petro Тrouq / @zulolosi

09/08/2023 at 11:43PM

25
#5 - Peppa Pig / @PeppaPi95550250

06/25/2024 at 04:43AM

25
#6 - nickGPT / @nickandbro

08/28/2024 at 06:09PM

29
#7 - StarkHalo / @hellektor

10/07/2013 at 07:54PM

30
#8 - Matt / @mcr05

02/26/2015 at 07:12PM

31
#9 - James T. Huggett / @Jmeshka

10/02/2013 at 06:52PM

31
#10 - Tzipan / @Tzipan

11/03/2013 at 12:50PM

31
#11 - pftb12345 / @pftb12345

04/24/2015 at 02:37AM

31
#12 - Marcel Akkerman / @MarcelAkkerman

12/28/2016 at 09:20PM

31
#13 - Alex Koch 👨‍🍳👨‍💻🌹 / @alex_w_k

03/24/2017 at 04:24PM

32
#14 - bunnies president / @bunnies4p

10/27/2013 at 11:46AM

34
#15 - Tim Chase / @gumnos

09/23/2013 at 09:05PM

34
#16 - Jaime sánchez / @jashbeta

09/28/2013 at 02:37PM

34
#17 - Hugo / @szeyattai

08/21/2018 at 06:47AM

35
#18 - Kai Yuan / @kentyuan

09/23/2013 at 08:02PM

35
#19 - James / @Dronak

09/23/2013 at 09:52PM

35
#20 - apof / @9pof

09/24/2013 at 09:58AM

35
#21 - Steve Tjoa / @stevetjoa

09/25/2013 at 01:17AM

35
#22 - Steven Weller / @suweller

09/26/2013 at 03:32PM

35
#23 - Oliver Christ / @0liverChrist

09/26/2013 at 08:57PM

35
#24 - Stephen Drodge / @sjdrodge

09/29/2013 at 10:33PM

35
#25 - Throw Away / @throwaway111111

10/01/2013 at 11:31PM

35
#26 - Tyler / @tylerbindon

10/20/2013 at 08:44PM

35
#27 - Jack Z / @itszhou

10/29/2013 at 06:32AM

35
#28 - mwcz / @mwcz

11/01/2013 at 06:09PM

35
#29 - Yann Moisan / @YannMoisan

01/03/2014 at 08:05PM

35
#30 - cj / @cj01101

02/04/2014 at 11:18PM