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

Don't know what this is

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

Start file
[1:0]
[0:1]
[1:100]
[0:100]
End file
[   ]
[   ]
[     ]
[     ]

View Diff

1,4c1,4
< [1:0]
< [0:1]
< [1:100]
< [0:100]
---
> [   ]
> [   ]
> [     ]
> [     ]

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 481 remaining solutions by signing in and submitting your own entry
#482 luffy / @raxcoi - Score: 75 - 08/01/14 @ 13:29
:<Up><Up><Up>%s/[^\[\]]*/\=repeat()/g<Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Left>' ', strlen()<Left>submatch(0)<CR>:wq<CR>

0 comments


Created by: @udioica

482 active golfers, 1565 entries

Leaderboard (lowest score wins):
14
#241 - Antonio De Luna / @Tony_1917

09/24/2014 at 06:37AM

14
#242 - Jakob / @jajob

09/29/2014 at 06:30PM

14
#243 - Eric Kever / @codeoverlode

09/29/2014 at 10:33PM

14
#244 - Viktor Lindström / @ViktorLindstr_m

09/30/2014 at 09:28PM

14
#245 - Mihir / @mihirgogate

10/04/2014 at 07:24AM

14
#246 - Marcelo Montu / @_mMontu_

10/29/2014 at 05:31PM

14
#247 - eBrnd / @eBrnd

11/02/2014 at 12:24PM

14
#248 - w1zeman1p / @wizemanip

11/09/2014 at 07:45PM

14
#249 - Davit Samvelyan / @DavitSamvelyan

11/13/2014 at 02:01PM

14
#250 - Jan Novak / @odpadnimail

11/19/2014 at 03:44AM

14
#251 - Adrien Canuel / @AdrienCanuel

11/20/2014 at 09:08AM

14
#252 - Keyboard Fire / @KeyboardFire

11/22/2014 at 02:09PM

14
#253 - Nathan Seither / @NathanSeither

11/30/2014 at 04:19AM

14
#254 - Daniel Wang / @danwang

12/10/2014 at 09:36PM

14
#255 - Daniel Rødskog / @daniero

12/10/2014 at 10:37PM

14
#256 - Erim Secla / @Alcesmire

12/15/2014 at 05:18AM

14
#257 - Steve Alison / @Steve_Alison

12/17/2014 at 09:30PM

14
#258 - Joshua Greeenberg / @JoshuaGreeenber

12/19/2014 at 01:51PM

14
#259 - .さとうにるぽ引退.swp / @nillpo

12/22/2014 at 04:16AM

14
#260 - Jake Eskel / @JakeEskel

12/29/2014 at 05:34AM

14
#261 - Matthieu Crapet / @mcr05

12/29/2014 at 09:51AM

14
#262 - Carlos A Henríquez Q / @lagunex

01/18/2015 at 03:51PM

14
#263 - Sebastian B / @cyborgryna

02/03/2015 at 12:04AM

14
#264 - Kenny / @zumalifeguard

03/12/2015 at 08:55PM

14
#265 - Walf / @walfieee

03/23/2015 at 09:26PM

14
#266 - Anderson Mesquita / @andersonvom

04/17/2015 at 07:21AM

14
#267 - Daniel Byron / @dansolo17

04/18/2015 at 12:58AM

14
#268 - Tom van der Lee / @TomVdLee

04/21/2015 at 07:08AM

14
#269 - Gracjan Grala / @gracjangrala

04/24/2015 at 10:42PM

14
#270 - Kevin Yokley / @kyokley19

04/26/2015 at 01:35AM