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 51cd1be19f3290000200000e

Assign list

Assign list elements to matrix

Start file
A challenge can hide secrets

  M00
=
  M01
=
  M10
=
  M11
=
  M20
=
  M21
= 0
End file
  M[0][0] = 'A'
  M
[0][1] = 'challenge'
  M
[1][0] = 'can'
  M
[1][1] = 'hide'
  M
[2][0] = 'secrets'
  M
[2][1] = 0

View Diff

A challenge can hide secrets                                  <

  M00
=                                                       |   M[0][0] = 'A'
  M01
=                                                       |   M[0][1] = 'challenge'
  M10
=                                                       |   M[1][0] = 'can'
  M11
=                                                       |   M[1][1] = 'hide'
  M20
=                                                       |   M[2][0] = 'secrets'
  M21
= 0                                                     |   M[2][1] = 0

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 60 remaining solutions by signing in and submitting your own entry
#61 moo goo / @m00g000 - Score: 73 - 07/01/13 @ 15:28
qwdw/=$<CR>pggq@w@@@@@@dd:%s/\vM(\d)(\d)/M[\1][\2]<CR>:%s/\v\=(\w+) */= '\1'<CR>ZZ

@zulolosi: Hi! it doesn't need M, only this :%s/\v(\d)(\d)/[\1][\2]

1 comment


Created by: @zulolosi

61 active golfers, 192 entries

Leaderboard (lowest score wins):
30
#1 - Bradd Szonye / @bszonye

07/10/2013 at 09:19PM

30
#2 - Petro Тrouq / @zulolosi

09/17/2013 at 06:54PM

30
#3 - John Braxler / @braxler

04/18/2014 at 03:14PM

30
#4 - Jon Krause / @jkrause314

01/17/2016 at 09:03AM

30
#5 - Peppa Pig / @PeppaPigSg

08/14/2024 at 09:52AM

31
#6 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 03:51AM

31
#7 - Forrest Zeisler / @fzeisler

07/25/2013 at 12:49AM

31
#8 - Ben Zittlau / @benzittlau

07/28/2013 at 05:16PM

31
#9 - Felix Stridsberg / @FelixStridsberg

08/03/2013 at 03:17PM

31
#10 - Urtica dioica / @udioica

11/13/2013 at 05:28PM

31
#11 - Nathan Wallace / @nathanmwallace

11/27/2013 at 04:23PM

31
#12 - Janzen / @__Coos

09/26/2022 at 01:32PM

32
#13 - Steve Tjoa / @stevetjoa

07/03/2013 at 06:03PM

32
#14 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/21/2013 at 01:27AM

32
#15 - _ky_ / @ultimate_ky

08/13/2013 at 10:38PM

32
#16 - Roman Charushin / @lompee

08/21/2013 at 10:50AM

33
#17 - Andrew Noyes / @seyonwerdna

07/08/2013 at 06:55AM

34
#18 - James Davis / @tripvg

06/28/2013 at 09:59PM

34
#19 - Casey Dwyer / @caseydwyer

10/30/2013 at 09:00AM

34
#20 - jimauthors / @jimauthors

02/12/2014 at 01:59AM

34
#21 - quemeraisc / @quemeraisc

05/31/2022 at 03:36PM

35
#22 - Lluís Mª Bosch / @holalluis

06/30/2013 at 01:22AM

35
#23 - Volodymyr / @vkrest

07/14/2013 at 10:14PM

36
#24 - Stephen Drodge / @sjdrodge

09/29/2013 at 10:55PM

36
#25 - z00master / @z00master

08/31/2022 at 04:29PM

36
#26 - nickGPT / @nickandbro

08/28/2024 at 06:28PM

37
#27 - powertomato / @powertomato

06/28/2013 at 10:35PM

37
#28 - Dom Armstrong / @dom_cycleface

06/30/2013 at 09:45PM

39
#29 - gary.klindt@googlema / @garstekli

11/29/2013 at 12:15AM

40
#30 - Tullio Facchinetti / @toolleeo

07/24/2013 at 10:34AM