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

572 active golfers, 1951 entries

Leaderboard (lowest score wins):
16
#451 - Daniel Burnett / @mango_cheetah

10/10/2014 at 12:51AM

16
#452 - Narek / @NarekCat

10/10/2014 at 07:28PM

16
#453 - Andy Zhang / @andyzg3

10/23/2014 at 03:12AM

16
#454 - kungfuchad / @kungfuchad

10/28/2014 at 07:19PM

16
#455 - Steve Lazaridis / @SteveLazaridis

11/03/2014 at 04:22PM

16
#456 - Inndy / @Inndy_tw

11/06/2014 at 04:38PM

16
#457 - jiangchuan / @tommy_he

11/16/2014 at 07:31PM

16
#458 - Martin Toma / @MartinToma

11/16/2014 at 10:09PM

16
#459 - Erik Buček / @_EnterNameHere_

11/18/2014 at 03:54PM

16
#460 - Dylan Tomas Meissner / @ickypop

11/23/2014 at 01:28AM

16
#461 - Malte R / @maltoe

11/30/2014 at 02:29PM

16
#462 - Test User / @TestUserIgnore

12/04/2014 at 09:56PM

16
#463 - Rao Zvorovski / @RaoZvorovski

12/06/2014 at 07:20PM

16
#464 - Alex Serebryakov / @Doc_Livesey

12/07/2014 at 03:21PM

16
#465 - Lunar Mayor / @Lunarmayor

12/17/2014 at 10:21PM

16
#466 - Tact Overflow / @muppling

01/07/2015 at 01:32PM

16
#467 - Raynard, Jordan / @raynard_jordan

01/19/2015 at 09:22PM

16
#468 - Joshua Draper / @JoshuaBDraper

02/15/2015 at 04:07AM

16
#469 - Dmitry Zudochkin / @zudochkin

02/18/2015 at 09:50AM

16
#470 - Christopher Giroir / @kelsin5

02/20/2015 at 09:00PM

16
#471 - Thiago Prado / @5k1pp3r

03/01/2015 at 08:16PM

16
#472 - Deepak Surti / @dmsurti

03/16/2015 at 03:32PM

16
#473 - Jeffrey Gu / @Jeffrey_Gu

03/19/2015 at 10:00PM

16
#474 - VimGolf-suka / @vg_suka

03/30/2015 at 01:26PM

16
#475 - William Ott / @oddalot

04/08/2015 at 04:17PM

16
#476 - Andrew Larson / @applarson

04/15/2015 at 01:33PM

16
#477 - we’re going to need a bigger bot / @assaflavie

04/18/2015 at 07:39PM

16
#478 - chvzvhn / @chvzvhn

04/26/2015 at 06:38AM

16
#479 - Alex Bartol / @alexbartol

05/19/2015 at 05:42PM

16
#480 - Joel Gallant / @joelg236

06/09/2015 at 12:37AM