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):
13
#181 - Zach Ingbretsen / ZIngbretsen

07/29/2014 at 11:13PM

13
#182 - Bart / oneofmanybarts

08/04/2014 at 08:32AM

13
#183 - Domon / Domon

08/06/2014 at 08:19AM

13
#184 - Dmitriy / _dpy_

08/20/2014 at 09:25PM

13
#185 - Johan Helsing / jkhelsing

08/23/2014 at 02:39PM

13
#186 - Vim Golfer / thevimgolfer

09/15/2014 at 01:40PM

13
#187 - Timothée Gauthier / zmf_tim

11/16/2014 at 12:25AM

13
#188 - Filipe Almeida / filipe_almeida

12/31/2014 at 10:07AM

13
#189 - Jordana Lachow / TomofBedlam

01/13/2015 at 12:06AM

13
#190 - kobby / _kafdot_

01/18/2015 at 11:26PM

13
#191 - Arno ℇrpenbeck / javacgn

01/19/2015 at 12:19PM

13
#192 - Skúli Jóhannsson / skulibj

06/26/2015 at 07:00PM

13
#193 - Jack Z / itszhou

06/28/2015 at 05:33PM

13
#194 - Ian Trophy / prfrgg

02/01/2016 at 08:48AM

13
#195 - Cristian Lupașcu / clupasq

02/12/2016 at 09:53PM

13
#196 - Jan Bundesmann / ixjab

04/04/2016 at 01:09PM

13
#197 - Will / obiwan__k3n00bi

07/31/2016 at 07:03PM

13
#198 - Yann / yannstadnicki

02/21/2017 at 05:14PM

13
#199 - caplod / caplod

03/26/2017 at 10:06AM

13
#200 - Charlie OConor / charlieoconor

10/01/2017 at 09:18PM

14
#201 - Ricardo M. Vilchis / ajkaanbal

07/16/2014 at 02:24PM

14
#202 - Bambu / bambumandinga

07/16/2014 at 11:57PM

14
#203 - Pete Johns / johnsyweb

07/17/2014 at 05:54AM

14
#204 - Marcin Sza / coot_

07/17/2014 at 09:19AM

14
#205 - James / Dronak

07/17/2014 at 03:50PM

14
#206 - Stanislav Nikolov / valsinatss

07/17/2014 at 08:41PM

14
#207 - Dmitry Teslenko / krab_mozga

07/18/2014 at 08:34AM

14
#208 - glennphillips / glennphillips

07/19/2014 at 11:25PM

14
#209 - John Gray Cole / johngraycole

07/20/2014 at 01:10AM

14
#210 - Omer Lachish / rauchy

07/20/2014 at 11:26AM