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
#61 - Smylers / Smylers2

02/11/2016 at 12:06PM

11
#62 - Michael Buckley / apolatg

02/13/2016 at 09:26PM

11
#63 - Jaron Hamlik / jdhamlik

02/27/2016 at 04:24AM

11
#64 - Mister Knister / vimgolf_ctrl_x

03/08/2016 at 12:56PM

11
#65 - Dinesh Bhosale / MrDineshBhosale

04/01/2016 at 01:42PM

11
#66 - Alex Ch / _AlexCh_

04/15/2016 at 10:44PM

11
#67 - John Goes / johnwgoes

05/09/2016 at 01:26AM

11
#68 - John Doe Sr. / johndoe67890543

05/23/2016 at 10:47PM

11
#69 - jdupont655 / jdupont655

09/02/2016 at 02:57PM

11
#70 - Stephen Aument / saument

09/04/2016 at 03:19AM

11
#71 - loki2441 / loki2441

09/11/2016 at 12:30AM

11
#72 - manbogot / gmanbor

10/02/2016 at 09:40AM

11
#73 - Nico / _Nico_Caro

10/03/2016 at 06:32PM

11
#74 - poke / useraaaaaaaaaaf

10/05/2016 at 02:49PM

11
#75 - trx / trxdbg

10/13/2016 at 07:10AM

11
#76 - Arca Artem / arcaartem

12/29/2016 at 11:33PM

11
#77 - Pierre Maoui / poupougnac

12/31/2016 at 11:01AM

11
#78 - Zhihong Liu / pieapple03

02/21/2017 at 02:13AM

11
#79 - Alexander Bessonov / nonsleepr

03/15/2017 at 11:00PM

11
#80 - Ilya Shakirov / aelaau

03/22/2017 at 09:34AM

11
#81 - Solomon / Trugbildjaeger

04/02/2017 at 10:32AM

11
#82 - 梧桐王子 / WutongYujie

04/30/2017 at 09:23AM

11
#83 - Chris Robertson / chrisxrobertson

05/22/2017 at 12:18PM

11
#84 - Melvin Cheung / MelvinCheung

05/25/2017 at 06:19PM

11
#85 - John Smith / johns32768

06/17/2017 at 04:42PM

11
#86 - Bennett Bernardoni / BBernardoni

06/28/2017 at 10:18PM

11
#87 - 杨洋 / 176795444

08/29/2017 at 11:34AM

11
#88 - Benoit Mortgat / Benoit_Mortgat

11/14/2017 at 01:51PM

11
#89 - BarbaJol / drpproteus

01/06/2018 at 11:44AM

11
#90 - Dominic Z / thammaaa

01/24/2018 at 12:38PM