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):
16
#391 - Erik Buček / @_EnterNameHere_

11/18/2014 at 03:54PM

16
#392 - Dylan Tomas Meissner / @ickypop

11/23/2014 at 01:28AM

16
#393 - Malte R / @maltoe

11/30/2014 at 02:29PM

16
#394 - Test User / @TestUserIgnore

12/04/2014 at 09:56PM

16
#395 - Rao Zvorovski / @RaoZvorovski

12/06/2014 at 07:20PM

16
#396 - Alex Serebryakov / @Doc_Livesey

12/07/2014 at 03:21PM

16
#397 - Lunar Mayor / @Lunarmayor

12/17/2014 at 10:21PM

16
#398 - Tact Overflow / @muppling

01/07/2015 at 01:32PM

16
#399 - Raynard, Jordan / @raynard_jordan

01/19/2015 at 09:22PM

16
#400 - Joshua Draper / @JoshuaBDraper

02/15/2015 at 04:07AM

16
#401 - Dmitry Zudochkin / @vredniy

02/18/2015 at 09:50AM

16
#402 - Christopher Giroir / @kelsin5

02/20/2015 at 09:00PM

16
#403 - Thiago Prado / @5k1pp3r

03/01/2015 at 08:16PM

16
#404 - Deepak Surti / @dmsurti

03/16/2015 at 03:32PM

16
#405 - Jeffrey Gu / @Jeffrey_Gu

03/19/2015 at 10:00PM

16
#406 - VimGolf-suka / @vg_suka

03/30/2015 at 01:26PM

16
#407 - William Ott / @oddalot

04/08/2015 at 04:17PM

16
#408 - Andrew Larson / @applarson

04/15/2015 at 01:33PM

16
#409 - SIGHODL / @AssafLavie

04/18/2015 at 07:39PM

16
#410 - chvzvhn / @chvzvhn

04/26/2015 at 06:38AM

16
#411 - Alex Bartol / @alexbartol

05/19/2015 at 05:42PM

16
#412 - Joel Gallant / @joelg236

06/09/2015 at 12:37AM

16
#413 - Hendrik Lammers / @hendriklammers

06/13/2015 at 08:39AM

16
#414 - Teemu Okkonen / @TeemuOkkonen

07/11/2015 at 04:08PM

16
#415 - McKay Ward / @mckayward

07/28/2015 at 03:39AM

16
#416 - Sergey Semushin / @Predelnik

08/26/2015 at 06:23AM

16
#417 - alex / @alexAngle8

08/30/2015 at 08:56AM

16
#418 - Mikołaj Morzy / @MikolajMorzy

09/01/2015 at 09:11PM

16
#419 - Kiet Nguyen / @kietnguyen86

09/29/2015 at 02:34PM

16
#420 - Andrey / @androzhk

10/15/2015 at 04:58PM