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):
12
#151 - ben kavanagh / bkava

02/23/2016 at 03:39AM

12
#152 - Dimitar Dimitrov / kurkale6ka

03/11/2016 at 04:42PM

12
#153 - Saki Gw / Sakigw

04/03/2016 at 06:59PM

12
#154 - Robber Toe / robbertoe

04/03/2016 at 09:28PM

12
#155 - Michal Sylwester / msylw

05/27/2016 at 08:31AM

12
#156 - Ram Tamtam / ramtamtamtam

06/23/2016 at 10:08AM

12
#157 - François Marais / maraisf

08/09/2016 at 06:02PM

12
#158 - Constantine / ConstantineHatz

09/27/2016 at 08:21PM

12
#159 - Stanislav / prstad

09/28/2016 at 09:09AM

12
#160 - Bill Ruddock / biinari

10/31/2016 at 04:37AM

12
#161 - timerella® / timerella

11/17/2016 at 10:43PM

12
#162 - YNWP / ynw_P

12/07/2016 at 11:48AM

12
#163 - Marcin / Marcin89439917

12/31/2016 at 01:02AM

12
#164 - Alex Linden / alexwlinden1

04/19/2017 at 07:01PM

12
#165 - Brian Hall / _bruab_

05/05/2017 at 01:01PM

12
#166 - Carl Egbert / CarlOEgbert

06/11/2017 at 09:10PM

12
#167 - David Gustavsson / mrGustaphe

06/15/2017 at 08:56AM

12
#168 - moritz / moritz45081535

06/18/2017 at 04:16PM

12
#169 - Christian Stammen / c0smiq

06/30/2017 at 08:38AM

12
#170 - Ben Hill / KaizenSoze70

10/12/2017 at 06:32PM

12
#171 - Turkey Man / lvturkeyman

11/10/2017 at 01:21AM

12
#172 - John C Shea / MHSSachems

02/04/2018 at 11:29AM

12
#173 - Arijus / argshook

02/09/2018 at 09:58AM

12
#174 - Pavol Slamka / Archipedes

03/12/2018 at 10:41PM

12
#175 - Lisa Ugray / lisa_ugray

03/18/2018 at 01:56PM

13
#176 - Jonas Höglund / FireyFly

07/16/2014 at 01:38PM

13
#177 - Kerson Hsiao / KersonHsiao

07/19/2014 at 11:48AM

13
#178 - omesh / panditaomesh

07/23/2014 at 02:52PM

13
#179 - Alex K / alex_kononovich

07/23/2014 at 08:55PM

13
#180 - Zapata / Incredible_JFP

07/27/2014 at 09:21AM