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 371 remaining solutions by signing in and submitting your own entry
#372 kungfuchad / kungfuchad - Score: 16 - 10/28/14 @ 19:19
:%s/[01:]/ /g|x<CR>

0 comments


#373 Steve Lazaridis / SteveLazaridis - Score: 16 - 11/03/14 @ 16:22
:%s/[:01]/ /g<CR>ZZ

0 comments


#374 Inndy / Inndy_tw - Score: 16 - 11/06/14 @ 16:38
:%s/[10:]/ /g<CR>ZZ

0 comments


#375 jiangchuan / tommy_he - Score: 16 - 11/16/14 @ 19:31
qqwvt]r 2wq3@qZZ

0 comments


#376 Martin Toma / MartinToma - Score: 16 - 11/16/14 @ 22:09
:%s/[:01]/ /g<CR>ZZ

0 comments


#377 Erik Buček / _EnterNameHere_ - Score: 16 - 11/18/14 @ 15:54
:%s/[10:]/ /g<CR>ZZ

0 comments


#378 Dylan Tomas Meissner / ickypop - Score: 16 - 11/23/14 @ 01:28
lqqvi]r <Esc>jq3@qZZ

0 comments


#379 Malte R / maltoe - Score: 16 - 11/30/14 @ 14:29
:%s/[10:]/ /g<CR>ZZ

0 comments


#380 Test User / TestUserIgnore - Score: 16 - 12/04/14 @ 21:56
qqlvt]r 2wq3@qZZ

0 comments


#381 Rao Zvorovski / RaoZvorovski - Score: 16 - 12/06/14 @ 19:20
qqlvt]r +@qq@qZZ

0 comments


#382 Alex Serebryakov / Doc_Livesey - Score: 16 - 12/07/14 @ 15:21
:%s/[01:]/ /g<CR>ZZ

0 comments


#383 Lunar Mayor / Lunarmayor - Score: 16 - 12/17/14 @ 22:21
:%s/[1:0]/ /g<CR>ZZ

0 comments


#384 Tact Overflow / muppling - Score: 16 - 01/07/15 @ 13:32
:%s/[01:]/ /g<CR>ZZ

0 comments


#385 Raynard, Jordan / raynard_jordan - Score: 16 - 01/19/15 @ 21:22
:%s/[1:0]/ /g<CR>ZZ

0 comments


#386 Joshua Draper / JoshuaBDraper - Score: 16 - 02/15/15 @ 04:07
:%s/[10:]/ /g<CR>ZZ

0 comments


#387 Dmitry Zudochkin / vredniy - Score: 16 - 02/18/15 @ 09:50
:%s/[01:]/ /g<CR>ZZ

0 comments


#388 Christopher Giroir / kelsin5 - Score: 16 - 02/20/15 @ 21:00
:%s/[10:]/ /g<CR>ZZ

0 comments


#389 Thiago Prado / 5k1pp3r - Score: 16 - 03/01/15 @ 20:16
:%s/[01:]/ /g<CR>ZZ

0 comments


#390 Deepak Surti / dmsurti - Score: 16 - 03/16/15 @ 15:32
:%s/[:01]/ /g<CR>ZZ

0 comments


#391 Jeffrey Gu / Jeffrey_Gu - Score: 16 - 03/19/15 @ 22:00
:%s/[01:]/ /g<CR>ZZ

0 comments


#392 VimGolf-suka / vg_suka - Score: 16 - 03/30/15 @ 13:26
:%s/[01:]/ /g<CR>ZZ

0 comments


#393 William Ott / oddalot - Score: 16 - 04/08/15 @ 16:17
:%s/[10:]/ /g<CR>ZZ

0 comments


#394 Andrew Larson / applarson - Score: 16 - 04/15/15 @ 13:33
:%s/[10:]/ /g<CR>ZZ

0 comments


#395 Assaf Lavie / AssafLavie - Score: 16 - 04/18/15 @ 19:39
:%s/[01:]/ /g<CR>ZZ

0 comments


#396 chvzvhn / chvzvhn - Score: 16 - 04/26/15 @ 06:38
:%s/[:10]/ /g<CR>ZZ

0 comments


#397 Alex Bartol / alexbartol - Score: 16 - 05/19/15 @ 17:42
qqwvt]r j0q3@qZZ

0 comments


#398 Joel Gallant / joelg236 - Score: 16 - 06/09/15 @ 00:37
:%s/\d\|:/ /g<CR>ZZ

0 comments


#399 Hendrik Lammers / hendriklammers - Score: 16 - 06/13/15 @ 08:39
:%s/\d\|:/ /g<CR>ZZ

0 comments


#400 Teemu Okkonen / TeemuOkkonen - Score: 16 - 07/11/15 @ 16:08
:%s/[1:0]/ /g<CR>ZZ

0 comments


#401 McKay Ward / mckayward - Score: 16 - 07/28/15 @ 03:39
:%s/\d\|:/ /g<CR>ZZ

0 comments


#402 Sergey Semushin / Predelnik - Score: 16 - 08/26/15 @ 06:23
:%s/[01:]/ /g<CR>ZZ

0 comments


#403 alex / alexAngle8 - Score: 16 - 08/30/15 @ 08:56
:%s/[^][]/ /g<CR>ZZ

0 comments


#404 Mikołaj Morzy / MikolajMorzy - Score: 16 - 09/01/15 @ 21:11
:%s/[01:]/ /g<CR>ZZ

0 comments


#405 Kiet Nguyen / kietnguyen86 - Score: 16 - 09/29/15 @ 14:34
:%s/[0:1]/ /g<CR>ZZ

0 comments


#406 Andrey / androzhk - Score: 16 - 10/15/15 @ 16:58
:%s/[01:]/ /g<CR>ZZ

0 comments


#407 Gerald Tilma / GeraldTilma - Score: 16 - 10/17/15 @ 22:56
:%s/[01:]/ /g<CR>ZZ

0 comments


#408 Anshu Avinash / anshu_avinash - Score: 16 - 10/18/15 @ 18:08
:%s/[01:]/ /g<CR>ZZ

0 comments


#409 roboguy / roboguy - Score: 16 - 10/18/15 @ 22:57
:%norm vi]r<C-V> <CR>ZZ

0 comments


#410 Ryan Marcotte / ryanjmarcotte - Score: 16 - 11/15/15 @ 17:49
:%s/[10:]/ /g<CR>ZZ

0 comments


#411 Izabel Jelenić / IzabelJelenic - Score: 16 - 01/02/16 @ 21:00
qq<Right>vt]r <Home><Down>q3@qZZ

0 comments


#412 fuck GFW / ravishGFW - Score: 16 - 01/05/16 @ 12:10
:%s/[01:]/ /g<CR>ZZ

0 comments


#413 Etienne Tremel / etiennetremel - Score: 16 - 02/06/16 @ 13:49
:%s/[01:]/ /g<CR>ZZ

0 comments


#414 Kevin Gisi / cheerskevin - Score: 16 - 02/24/16 @ 08:23
:%s/\w\|:/ /g<CR>ZZ

0 comments


#415 ELINGUI Pascal Uriel / elinguiuriel - Score: 16 - 04/20/16 @ 12:34
qa0lvt]r jq3@aZZ

0 comments


#416 Jason Pleau / JasonPleau - Score: 16 - 05/06/16 @ 02:14
:%s#[01:]# #g<CR>ZZ

0 comments


#417 Steven Moazami / mong8se - Score: 16 - 05/10/16 @ 01:19
:%s/[01:]/ /g|x<CR>

0 comments


#418 Andres Araya / arayaandresfco - Score: 16 - 05/15/16 @ 19:59
:%s/[01:]/ /g<CR>ZZ

0 comments


#419 quiggy🌹 / quiggy - Score: 16 - 05/18/16 @ 14:20
:%s/[:01]/ /g<CR>ZZ

0 comments


#420 Ameen P / Ameen_P1 - Score: 16 - 06/23/16 @ 16:59
:%s/[10:]/ /g<CR>ZZ

0 comments


#421 Timothy Caleb Nordlo / tnordloh - Score: 16 - 06/30/16 @ 04:03
:%s/[01:]/ /g<CR>ZZ

0 comments


#422 André Peric Tavares / AndrePeric - Score: 16 - 07/24/16 @ 17:43
:%s/[01:]/ /g<CR>ZZ

0 comments


#423 알카포 / alkpo12 - Score: 16 - 09/09/16 @ 07:46
:%s/[1:0]/ /g<CR>ZZ

0 comments


#424 Ian van der Linde / Ian_vdl - Score: 16 - 09/16/16 @ 16:16
:%s/[:01]/ /g<CR>ZZ

0 comments


#425 Ilya Ezepov / iezepov - Score: 16 - 12/05/16 @ 09:21
:%s/[:01]/ /g<CR>ZZ

0 comments


#426 Colin Jacobs / coljac - Score: 16 - 03/14/17 @ 11:52
:%s@[1:0]@ @g<CR>ZZ

0 comments


#427 Stop and think / ms_uncountable - Score: 16 - 07/07/17 @ 11:14
lqavf]hr jq3@aZZ

0 comments


#428 Gurukandhamoorthi / Gurukandhamoor1 - Score: 16 - 07/10/17 @ 14:06
:%s/[10:]/ /g<CR>ZZ

0 comments


#429 Ron Alexssen / Ralexhere - Score: 16 - 11/08/17 @ 18:19
:%s/[10:]/ /g<CR>ZZ

0 comments


#430 Spacesh1p / spacesh1pdev - Score: 16 - 01/04/18 @ 10:26
:%s/[10:]/ /g<CR>ZZ

0 comments


#431 Pereant osores / viniciusxp - Score: 16 - 04/30/18 @ 08:04
:%s/[0:1]/ /g<CR>ZZ

0 comments


#432 z0c / zerocabal - Score: 16 - 06/06/18 @ 14:00
:%s/[1:0]/ /g<CR>ZZ

0 comments


#433 RobertT / techrt2050 - Score: 17 - 07/22/14 @ 03:35
l3r +l.+l..+l..ZZ

0 comments


#434 James Ryland Miller / longhornxtreme - Score: 17 - 07/29/14 @ 05:44
l<C-V>G3lr Gf0<C-V>klr ZZ

0 comments


#435 Alex / ninjabassist777 - Score: 17 - 07/30/14 @ 23:16
vi[r j.jvi[r j.ZZ

0 comments


#436 Justin Knag / justinknag - Score: 17 - 08/28/14 @ 12:07
:%s/[0:1]/ g<Left>/<CR>ZZ

0 comments


#437 coryknapp / coryknapp - Score: 17 - 09/26/15 @ 02:31
:%s/[10:]/ /g<CR><Esc>ZZ

0 comments


#438 Jakob Schöttl / jschoettl - Score: 17 - 12/20/15 @ 04:37
vi[r j.jvi[r j.ZZ

0 comments


#439 Feras / faldah - Score: 17 - 04/24/16 @ 01:15
:%s/[1:0]/ /g|wq<CR>

0 comments


#440 Julius Hövel / JulesFH - Score: 18 - 07/20/14 @ 15:16
:%s/[^\[\]]/ /g<CR>ZZ

0 comments


#441 Ryan O'Donnell / bt_ryanodonnell - Score: 18 - 08/08/14 @ 15:58
:%s/[1:0]/ /g<CR>:wq<CR>

0 comments


#442 Jonas / j0na3 - Score: 18 - 09/13/14 @ 22:00
:%s/1\|0\|:/ /g<CR>ZZ

0 comments


#443 Patrick Mitchell / jpmitche11 - Score: 18 - 10/10/14 @ 01:58
:%s/[^\[\]]/ /g<CR>ZZ

0 comments


#444 Yuval Goncz / YGoncho - Score: 18 - 12/24/14 @ 11:14
w<C-V><Right><Right>3jr /0<CR><C-V><Down><Right>r ZZ

0 comments


#445 d1uckym d1uckym / d1uckym - Score: 18 - 02/16/15 @ 06:44
:%s/[^\[\]]/ /g<CR>ZZ

0 comments


#446 shugen / shugeno - Score: 18 - 03/16/15 @ 22:33
:%s/[^\[\]]/ /g<CR>ZZ

0 comments


#447 ɐʇnɥsɐpoʇ / todashuta - Score: 18 - 03/25/15 @ 09:02
l<C-V>3j2lr /0<CR><C-V>jlr ZZ

0 comments


#448 Marcus Buffett / MarcusBuffett - Score: 18 - 10/05/15 @ 19:16
:%s/[^\[\]]/ /g<CR>ZZ

0 comments


#449 TS / tiredsounds - Score: 18 - 01/27/16 @ 05:09
f0<C-V>Glr 3j<C-V>kf0lr ZZ

0 comments


#450 Micha / michman89 - Score: 18 - 08/14/16 @ 16:30
l<C-V>Gf1r /0<CR><C-V>jlr :x<CR>

0 comments


#451 James Potter / JJPotterkowski - Score: 18 - 10/22/16 @ 04:13
l<C-V>3j2lr 3Gw<C-V>jlr ZZ

0 comments


#452 Paul Inc / hiniol1982 - Score: 18 - 09/17/17 @ 16:54
/\d\|:<CR>:%s// /g<CR>ZZ

0 comments


#453 Joseph Siddall / jbsiddall - Score: 19 - 07/30/14 @ 02:52
<NL>:%s/[^\]\[]/ /g<CR>ZZ

0 comments


#454 Matthew Barrington / mbarrin - Score: 19 - 07/30/14 @ 21:25
lqqvt]r qj@qj@qj.ZZ

0 comments


#455 Bobby Matson / bomatson - Score: 19 - 08/07/14 @ 16:59
VG:s/[1:0]/ /g<CR>:wq<CR>

0 comments


#456 Jesse Morton / Jesse_Motion - Score: 19 - 11/03/14 @ 07:22
qqlvt]r wwq@q@q@qZZ

0 comments


#457 Daniel Pham / dany_pham - Score: 19 - 10/16/15 @ 04:41
:% s/1\|0\|:/ /g<CR>ZZ

0 comments


#458 Remi Bernotavicius / bobbobbio - Score: 21 - 07/18/14 @ 02:56
:% s/1\|0\|:/ /g<CR>:wq<CR>

0 comments


#459 Halsey Smith / HalseySmith3 - Score: 21 - 10/10/17 @ 18:23
w3r 3w3r 3w5r 3w5r ZZ

0 comments


#460 Mark / mowen01 - Score: 23 - 07/28/14 @ 05:56
qqci]   <Esc>3wq3@qi  <Esc>k.ZZ

0 comments


#461 Simon Mölzer / h0wser - Score: 24 - 08/25/14 @ 15:15
:%S<BS>s/[01:]/ / <BS>g <BS><CR>:wq<CR>

0 comments


#462 Christian Guenter / chris_guenter - Score: 37 - 05/31/15 @ 19:09
<CR>q1<Right>R   <Esc>q<Down><Home>@1<Down><Home>@1<Down><Home>@ <Esc>@1<Right>R  <Up><Left><Left>  <Esc>ZZ

0 comments


#463 Felipe Apostol / flipjsio - Score: 40 - 10/06/14 @ 22:36
lR   <Esc>jhhR   <Esc>jhhR     <Esc>jhhhhR     <Esc>:wq<CR>

0 comments


#464 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

464 active golfers, 1482 entries

Leaderboard (lowest score wins):
11
#31 - Eric Lawless / eplawless

12/11/2014 at 09:32AM

11
#32 - david hu / chin33z

12/14/2014 at 03:22PM

11
#33 - Michael LeCompte / michaelslec

12/29/2014 at 10:33AM

11
#34 - kimber gonzalez / kimberlycreates

01/09/2015 at 10:49PM

11
#35 - low_ghost / low_ghost_clone

01/17/2015 at 10:08PM

11
#36 - Naseem Al-Naji / NaseemAlnaji

02/20/2015 at 03:06AM

11
#37 - Michael Giuffrida / mgiuffrida

02/22/2015 at 07:48AM

11
#38 - Ala' Ibrahim / alaa_ibrahim

03/10/2015 at 09:50AM

11
#39 - Matthew Pryor / HodgekaGames

03/10/2015 at 05:36PM

11
#40 - DrHobo / _DrHobo_

03/11/2015 at 02:45AM

11
#41 - Alexander Kazakov / volandkot

03/30/2015 at 07:20AM

11
#42 - raghu erapaneedi / raghue9

06/22/2015 at 02:33PM

11
#43 - Mutter Mumble / muttermumble

07/10/2015 at 10:28AM

11
#44 - David Willming / wdialvmeo

07/17/2015 at 03:32AM

11
#45 - Ferdev vimgolf / fergvimgolf

08/11/2015 at 08:06PM

11
#46 - Liam Thurston / lthurston188

08/18/2015 at 04:28AM

11
#47 - T A / SirAviles

08/31/2015 at 05:57PM

11
#48 - Tamas Gal (Tom) / tamasgal

09/26/2015 at 09:35PM

11
#49 - Mike Adams / davis_cromwell

09/30/2015 at 08:51PM

11
#50 - Walker Boh / walker_boh

10/05/2015 at 10:42AM

11
#51 - NuM / NuM314

10/24/2015 at 09:18AM

11
#52 - Gabriel Lima / ewilazarus

11/24/2015 at 11:36PM

11
#53 - Darius Smaliukas / daraz999

11/29/2015 at 04:32PM

11
#54 - Wilmer Bandres / WilmerBandres

12/11/2015 at 06:46PM

11
#55 - Jon Krause / jkrause314

12/30/2015 at 01:23AM

11
#56 - Joseph J. Piché / jjpiche

01/04/2016 at 10:08PM

11
#57 - Strabs / artistavenue

01/11/2016 at 03:55PM

11
#58 - jackliusr / jackliusr

01/13/2016 at 09:21AM

11
#59 - Roberto Carraretto / robcarraretto

01/27/2016 at 12:22AM

11
#60 - Aleksey Zhidkov / AlexeyZhidkov

02/01/2016 at 04:22AM