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 518 remaining solutions by signing in and submitting your own entry
#519 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

519 active golfers, 1730 entries

Leaderboard (lowest score wins):
14
#271 - Adrien Canuel / @AdrienCanuel

11/20/2014 at 09:08AM

14
#272 - Keyboard Fire / @KeyboardFire

11/22/2014 at 02:09PM

14
#273 - Nathan Seither / @NathanSeither

11/30/2014 at 04:19AM

14
#274 - Daniel Wang / @danwang

12/10/2014 at 09:36PM

14
#275 - Daniel Rødskog / @daniero

12/10/2014 at 10:37PM

14
#276 - Erim Secla / @Alcesmire

12/15/2014 at 05:18AM

14
#277 - Steve Alison / @Steve_Alison

12/17/2014 at 09:30PM

14
#278 - Joshua Greeenberg / @JoshuaGreeenber

12/19/2014 at 01:51PM

14
#279 - ぷりケツにるぽ / @nillpo

12/22/2014 at 04:16AM

14
#280 - Jake Eskel / @JakeEskel

12/29/2014 at 05:34AM

14
#281 - Matt / @mcr05

12/29/2014 at 09:51AM

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

01/18/2015 at 03:51PM

14
#283 - Sebastian B / @cyborgryna

02/03/2015 at 12:04AM

14
#284 - Kenny / @zumalifeguard

03/12/2015 at 08:55PM

14
#285 - Walf / @walfieee

03/23/2015 at 09:26PM

14
#286 - Anderson Mesquita / @andersonvom

04/17/2015 at 07:21AM

14
#287 - Daniel Byron / @dansolo17

04/18/2015 at 12:58AM

14
#288 - Tom van der Lee / @TomVdLee

04/21/2015 at 07:08AM

14
#289 - Gracjan Grala / @gracjangrala

04/24/2015 at 10:42PM

14
#290 - Kevin Yokley / @kyokley19

04/26/2015 at 01:35AM

14
#291 - Jonas Ng / @jnshey

05/18/2015 at 05:35AM

14
#292 - Elizabeth / @sprinkles418

05/28/2015 at 04:40PM

14
#293 - Samuel Masuy / @samasuy

06/27/2015 at 02:22AM

14
#294 - Peter B / @l0wm4x

08/17/2015 at 08:34PM

14
#295 - Ilya / @evilguc

10/15/2015 at 05:07PM

14
#296 - xarmux / @xarmux

10/24/2015 at 09:10PM

14
#297 - Árpád Krejczinger / @krarpi

11/02/2015 at 05:04PM

14
#298 - Pete Sevander / @Sevanteri

11/12/2015 at 01:27PM

14
#299 - Kostas / @blackraven_13

02/23/2016 at 03:20PM

14
#300 - glepha / @glepha_vim

03/15/2016 at 03:18AM