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

576 active golfers, 1961 entries

Leaderboard (lowest score wins):
11
#1 - Tim Chase / @gumnos

07/16/2014 at 08:52PM

11
#2 - Urtica dioica / @udioica

07/16/2014 at 09:03PM

11
#3 - Edgar Hipp / @EdgarHipp

07/17/2014 at 11:41AM

11
#4 - Yann Moisan / @YannMoisan

07/17/2014 at 10:43PM

11
#5 - Siddhanathan S. / @siddhanathan

07/19/2014 at 07:32PM

11
#6 - Birkir Ólafsson / @Birkirlafsson

07/20/2014 at 11:23AM

11
#7 - Chaitanya Desu / @ChaituNu

07/21/2014 at 12:06AM

11
#8 - John Braxler / @braxler

07/22/2014 at 01:11PM

11
#9 - Petro Тrouq / @zulolosi

07/22/2014 at 03:09PM

11
#10 - Yoonho Lee / @ID_einet89

07/23/2014 at 09:49AM

11
#11 - vimgolf copycat / @vimgolf_copycat

07/28/2014 at 03:33PM

11
#12 - Maximiliano Padulo / @mpadulo

07/29/2014 at 02:05PM

11
#13 - Slartibartfast / @S_Bartfast

07/30/2014 at 10:43AM

11
#14 - Lance Olsen / @muirbot

08/05/2014 at 09:20PM

11
#15 - Ivan Brennan / @ivanbrennan

08/06/2014 at 04:13AM

11
#16 - fa / @twiteciop

08/06/2014 at 07:19PM

11
#17 - Roman Charushin / @lompee

08/08/2014 at 01:38PM

11
#18 - Ben Haines / @bhainesva

08/08/2014 at 05:16PM

11
#19 - Siddhartha R Thota / @tweetingsid

08/11/2014 at 10:14AM

11
#20 - Phil Runninger / @PhilRunninger

08/14/2014 at 09:38PM

11
#21 - Yu-Lun Tseng / @YuLunTseng

08/28/2014 at 04:59AM

11
#22 - Juan-Lucas Picard / @davidmh

09/09/2014 at 02:47AM

11
#23 - Johannes H. / @neVexa

09/22/2014 at 07:23PM

11
#24 - Bob Davison / @bobd91

09/23/2014 at 08:14PM

11
#25 - Pierre Stévens / @pierre_stv

10/06/2014 at 01:15PM

11
#26 - Lupus Woulfe / @vim_mernd

10/07/2014 at 03:47PM

11
#27 - E Both / @enboth

10/16/2014 at 07:58PM

11
#28 - Andreas Simon / @ndrssmn

10/19/2014 at 03:57PM

11
#29 - Yuriy / @skriyka

11/20/2014 at 02:35PM

11
#30 - Roberto Alegro / @robertoaall

12/01/2014 at 04:41PM