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):
14
#271 - Andrew C. / isarl

03/16/2016 at 01:40PM

14
#272 - エクシル / sicoh395

04/07/2016 at 02:27PM

14
#273 - Jake Griffin / J4K0_G

04/22/2016 at 11:45PM

14
#274 - Ryan Dwyer / ryan_dwyer

06/05/2016 at 10:07PM

14
#275 - jan sos / jann6373

06/13/2016 at 03:24PM

14
#276 - Yudi Matsuzake / yudimatsuzake

06/14/2016 at 02:01PM

14
#277 - Ryan van Rensburg / rdvr001

07/21/2016 at 01:12PM

14
#278 - 王运 / 640138017

07/24/2016 at 02:08PM

14
#279 - Jeremiah Goyette / JeremiahGoyette

08/01/2016 at 06:29AM

14
#280 - Quatrix / Quatrix

08/10/2016 at 09:31PM

14
#281 - citaret / citaret

08/28/2016 at 03:16AM

14
#282 - TweetDreams / TweetMusicians

10/09/2016 at 07:02AM

14
#283 - John Barbero Unenge / JBarberU

11/18/2016 at 01:43PM

14
#284 - BlackCap / BlackCapCoder

11/30/2016 at 09:45AM

14
#285 - tPenguinLTG / tpenguinltg

01/03/2017 at 01:00PM

14
#286 - Hans Yelek / hans_yelek

01/12/2017 at 12:21AM

14
#287 - Миша Сорокин / rafmikovi4

04/10/2017 at 02:04PM

14
#288 - Wang Wu / rubepeg

05/12/2017 at 06:31AM

14
#289 - Daniel / 0x9ABC

08/18/2017 at 04:56PM

14
#290 - Kaydo Alders / Yousousen

03/13/2018 at 05:31PM

14
#291 - Dylan Nelson / dlnnlsn

06/08/2018 at 06:02AM

15
#292 - Paul Kunysch / kunysch

07/17/2014 at 06:31AM

15
#293 - MonkeyBrains ISP / monkeybrainsnet

07/26/2014 at 07:39AM

15
#294 - Dan Oneata / DanOneata

07/26/2014 at 09:19PM

15
#295 - marvlow / marv_low

08/06/2014 at 07:39PM

15
#296 - Blake / blkbsstt

08/08/2014 at 07:04AM

15
#297 - Rafee / rafee_buet

08/11/2014 at 08:44AM

15
#298 - Edgar Gonzalez / gonzedge

09/03/2014 at 06:53AM

15
#299 - James T. Huggett / Jmeshka

09/03/2014 at 09:26AM

15
#300 - John Smith / literacyisgood

09/05/2014 at 06:23AM