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 571028960c64c90990000003

From A to B

Mirror and change this text block

Start file
A.a.A.A.A
A.A.a.A.A
A.A.A.a.A
End file
BBBbB
BBbBB
BbBBB

View Diff

1,3c1,3
< A.a.A.A.A
< A.A.a.A.A
< A.A.A.a.A
---
> BBBbB
> BBbBB
> BbBBB

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 93 remaining solutions by signing in and submitting your own entry
#94 Alex Ch / _AlexCh_ - Score: 22 - 04/15/16 @ 23:59
d}5iB<Esc>YPP3l~j2h~j2h~ZZ

0 comments

#95 malet / Malet - Score: 22 - 06/23/16 @ 18:27
:%s/A\.*/B/gi<CR>l~k~k~ZZ

0 comments

#96 Robert Newbould / c0nspiracy - Score: 22 - 06/29/16 @ 16:50
:%s/A\.*/B/gi<CR>l~k~k~ZZ

0 comments

#97 André Peric Tavares / AndrePeric - Score: 22 - 07/20/16 @ 23:33
:%s/A\.*/B/gi<CR>l~k~k~ZZ

0 comments

#98 James / Dronak - Score: 22 - 08/03/16 @ 23:30
cGBBBbB<CR>BBbBB<CR>BbBBB<Esc>ZZ

0 comments

#99 Lukas Kruemel / KruemelKobold - Score: 22 - 10/06/16 @ 09:55
d}5iB<Esc>YPP3l~j2h~j2h~ZZ

0 comments

#100 TweetDreams / TweetMusicians - Score: 22 - 10/09/16 @ 04:49
:%s/A\.*/B/gi<CR>l~k~k~ZZ

0 comments

#101 Brian Hall / _bruab_ - Score: 22 - 03/09/17 @ 15:19
d}5iB<Esc>YPP3l~j2h~j2h~ZZ

0 comments

#102 caplod / caplod - Score: 22 - 03/26/17 @ 10:49
:%s/A\.*/B/gi<CR>l~k.k.ZZ

0 comments

#103 Georg Grauberger / GeorgGrauberger - Score: 23 - 04/18/16 @ 14:35
dGiBBBbB<CR>BBbBB<CR>BbBBB<Esc>ZZ

0 comments

#104 Eleanor Weigert / EleanorClarinet - Score: 23 - 05/14/16 @ 00:18
d}5iB<Esc>YPP3lqq~j2hq2@qZZ

0 comments

#105 Mikkel Knudsen / mikk2168 - Score: 23 - 09/28/16 @ 02:22
VGd5iB<Esc>YPP3l~j2h~j2h~ZZ

0 comments

#106 Hans Yelek / hans_yelek - Score: 24 - 01/12/17 @ 03:37
<C-V>G$rB<C-V>G3lx3lrbjhrbjhrbZZ

0 comments

#107 Tose / Toseim - Score: 28 - 04/17/16 @ 10:14
:g/^/m0|s/A.\?/B/g|s/a./b<CR>ZZ

0 comments

#108 Gracjan Grala / gracjangrala - Score: 29 - 06/03/16 @ 14:39
:%s/\.//g<CR>VkkrBlll~jhh~jhh~ZZ

0 comments

#109 José Miguel González / jmgaguilera - Score: 30 - 04/17/16 @ 09:58
:g/^/m0|s/A\.*/B/g|s/a./b/g<CR>ZZ

0 comments

#110 Anoop Kumar / anooplive - Score: 33 - 04/15/16 @ 00:48
:%s/A\.*/B/g<CR>:%s/a./b/<CR>ddPkddjpZZ

0 comments

#111 matt_todd / matt_todd - Score: 33 - 04/15/16 @ 23:27
:g/^/m0|s/A/B/g|s/\.//g|s/a/b/<CR>ZZ

0 comments

#112 Arnold Manzano / arnoldmanzano - Score: 33 - 04/19/16 @ 06:53
:%s/A.\|A/B/g|%s/a./b/|g/^/m0<CR>ZZZ

0 comments

#113 Michael Foley / m1foley - Score: 38 - 04/14/16 @ 23:58
:%s/\.//g<CR>ddPkddGp:%s/A/B/g<CR>:%s/a/b<CR>ZZ

0 comments

#114 Niru Maheswaranathan / niru_m - Score: 40 - 04/15/16 @ 03:45
:%s/\.//g<CR>lrbklrbklrb:%s/[a]<BS>A]/B/g<CR>:wq<CR>

0 comments

#115 mojito / simplihot - Score: 40 - 04/18/16 @ 11:19
VGdiBBBbB<CR>.<BS><Esc>..<Esc>kl~l~kh~jkhh~Gdd:wq<BS><BS><BS>ZZ

0 comments

#116 Avery Wilkening / awilkening - Score: 41 - 06/29/16 @ 19:35
l<C-V>Gldl.l.l.ddpjddkP:%s/A/B/g<CR>:%s/a/b/g<CR>ZZ

0 comments

#117 wall2flower / wall2flower - Score: 42 - 06/04/16 @ 17:43
:%s/\.//g<CR>:%s/A/B/g<CR>:%s/a/b/g<CR>kddpkkddjpZZ

0 comments

Created by: LluisMa

117 active golfers, 413 entries

Leaderboard (lowest score wins):
16
#1 - Urtica dioica / udioica

04/15/2016 at 12:37AM

16
#2 - CM Déjardin ن / CMDej

04/15/2016 at 08:14AM

16
#3 - John Braxler / braxler

04/15/2016 at 05:37PM

16
#4 - Olivia Tharp / tehlivi

04/15/2016 at 08:33PM

16
#5 - Petro Тrouq / zulolosi

04/19/2016 at 08:42PM

16
#6 - Tom Harada / p10q

04/28/2016 at 05:26AM

16
#7 - onedayrex / onedayzns

04/29/2016 at 02:02AM

16
#8 - Saki Gw / Sakigw

04/29/2016 at 09:27AM

16
#9 - John Goes / johnwgoes

05/03/2016 at 06:44PM

16
#10 - Michael Buckley / apolatg

05/12/2016 at 08:32PM

16
#11 - Majo / majodurco

05/15/2016 at 11:19AM

16
#12 - (,,꒪꒫꒪,,) / sneer

05/22/2016 at 05:01AM

16
#13 - John Doe Sr. / johndoe67890543

05/28/2016 at 02:51PM

16
#14 - Yudi Matsuzake / yudimatsuzake

05/28/2016 at 07:57PM

16
#15 - Vaughn Cato / vaughncato

05/30/2016 at 04:42AM

16
#16 - Paweł Smołka / pawelsmolka

06/16/2016 at 08:23AM

16
#17 - Tautvilas / TautviIas

06/16/2016 at 12:45PM

16
#18 - Artūras Zakrevskis / AZakrevskis

06/16/2016 at 12:47PM

16
#19 - Arijus / argshook

06/16/2016 at 12:58PM

16
#20 - TaoChen / 632143592Tao

06/17/2016 at 06:52AM

16
#21 - Dan Madden / guthran

07/15/2016 at 03:23PM

16
#22 - Alonzo / tolver_a

07/23/2016 at 04:19AM

16
#23 - Jeremiah Goyette / JeremiahGoyette

08/01/2016 at 03:56AM

16
#24 - Will / w_labranche

08/17/2016 at 03:12AM

16
#25 - Stanislav / prstad

08/23/2016 at 06:33AM

16
#26 - jdupont655 / jdupont655

09/02/2016 at 10:42AM

16
#27 - Stephen Aument / saument

09/03/2016 at 04:38AM

16
#28 - hor1ace / hor3ace

09/08/2016 at 11:43AM

16
#29 - loki2441 / loki2441

09/10/2016 at 08:52PM

16
#30 - Constantine / ConstantineHatz

09/26/2016 at 07:03PM

16
#31 - Nico / _Nico_Caro

10/01/2016 at 04:36AM

16
#32 - trx / trxdbg

10/12/2016 at 02:25PM

16
#33 - Alan Turing / alantrng

11/28/2016 at 11:58PM

16
#34 - Etai Nativ / enativ72

02/25/2017 at 09:26AM

16
#35 - Zhihong Liu / pieapple03

02/26/2017 at 06:45AM

16
#36 - sijinyuan / sijinyuan

03/01/2017 at 01:52AM

16
#37 - Ilya Shakirov / aelaau

03/22/2017 at 10:23AM

16
#38 - 梧桐王子 / WutongYujie

05/04/2017 at 12:54PM

16
#39 - Hocan Eittbe / fifthwallfly

05/12/2017 at 02:38AM

17
#40 - Jon Krause / jkrause314

04/14/2016 at 11:57PM

17
#41 - glepha / glepha_vim

04/15/2016 at 07:06AM

17
#42 - Victor Haffreingue / nobe_4

04/15/2016 at 08:13AM

17
#43 - Jan Bundesmann / ixjab

04/15/2016 at 10:26AM

17
#44 - abhinavgujjar / abhinavgujjar

04/15/2016 at 06:01PM

17
#45 - johannes err / into_the_beta

04/16/2016 at 09:16AM

17
#46 - Blake Tereau / BlakeTereau

04/16/2016 at 03:58PM

17
#47 - Philiphone / Philiphone

04/17/2016 at 07:58AM

17
#48 - E Both / enboth

04/17/2016 at 03:29PM

17
#49 - Domingue Justin / _jdomingue

04/17/2016 at 06:11PM

17
#50 - Kai Yuan / kentyuan

04/18/2016 at 11:33AM

17
#51 - Robert Mosher / rcmosher

04/18/2016 at 01:58PM

17
#52 - Dimitar Dimitrov / kurkale6ka

04/19/2016 at 08:58AM

17
#53 - Eero-Antero Säisä / jakolasku

05/02/2016 at 05:05PM

17
#54 - Jason Pleau / JasonPleau

05/05/2016 at 12:54AM

17
#55 - Andres Araya / arayaandresfco

05/14/2016 at 02:09AM

17
#56 - Tom / CronutFacts

05/15/2016 at 09:42PM

17
#57 - tgmeng / lazy_fabric

06/08/2016 at 08:29AM

17
#58 - Michal Sylwester / msylw

06/09/2016 at 04:53AM

17
#59 - Gabriel Tailor / gabriel_tailor

06/09/2016 at 07:35AM

17
#60 - David Devecsery / devecsery

06/12/2016 at 08:07PM

17
#61 - Ram Tamtam / ramtamtamtam

06/22/2016 at 09:28AM

17
#62 - Lifepillar / lifepillar

07/06/2016 at 07:28PM

17
#63 - Mort Rainey / arch_midnight

08/22/2016 at 01:05AM

17
#64 - Christian Rondeau / c_rondeau

10/17/2016 at 03:02AM

17
#65 - Marcin / Marcin89439917

12/31/2016 at 01:22AM

17
#66 - Alex Linden / alexwlinden1

04/26/2017 at 06:36PM

17
#67 - Remus Dalrymple / bornintheflames

05/06/2017 at 12:00AM

17
#68 - Matthew Mongeau / halogenandtoast

05/12/2017 at 12:53AM

17
#69 - Rami Hovi / hacker_lawyer

05/18/2017 at 09:45AM

17
#70 - Carl Egbert / CarlOEgbert

06/12/2017 at 01:11AM

18
#71 - Smylers / Smylers2

04/15/2016 at 08:17AM

18
#72 - ELINGUI Pascal Uriel / elinguiuriel

04/20/2016 at 02:20PM

18
#73 - Nigel Rahkola / NinjaRahkola

05/11/2016 at 05:51AM

18
#74 - tnordloh / tnordloh

06/26/2016 at 09:30PM

18
#75 - Oliver Christ / 0liverChrist

07/12/2016 at 10:22PM

18
#76 - jinx balotchnik / balotchnik

10/14/2016 at 02:43AM

18
#77 - Etienne Florent / EtienneFlorent

11/25/2016 at 08:22AM

18
#78 - Alexander Bessonov / nonsleepr

03/21/2017 at 09:45PM

19
#79 - Dani El / tequnix

04/15/2016 at 10:34AM

19
#80 - Eric Roberts / notabmovieactor

04/15/2016 at 04:17PM

19
#81 - Håkon Bråten / h_braten

04/26/2016 at 03:15PM

19
#82 - James Potter / JJPotterkowski

07/21/2016 at 10:02PM

19
#83 - Yann / yannstadnicki

02/22/2017 at 10:16PM

20
#84 - Amory Schlender / schlamory

07/09/2016 at 05:28AM

20
#85 - Utkrisht Dhankar / UtkrishtDhankar

09/08/2016 at 05:16AM

20
#86 - Raymond Chee / rchomium

03/05/2017 at 05:45AM

21
#87 - Louis Caruana / louiecaruana

04/15/2016 at 02:43AM

21
#88 - Cristian Lupașcu / clupasq

04/15/2016 at 05:50AM

21
#89 - Luc Trudeau / LT_Pragmatic

04/15/2016 at 10:35AM

21
#90 - Darren Tsung / _znalost

05/09/2016 at 05:22PM

21
#91 - aestetix / aestetix

05/17/2016 at 11:01AM

21
#92 - Ben Hill / KaizenSoze70

06/15/2016 at 12:15PM

22
#93 - Clémence / Clemence_Neoxia

04/15/2016 at 07:46AM

22
#94 - Alex Ch / _AlexCh_

04/15/2016 at 11:59PM

22
#95 - malet / Malet

06/23/2016 at 06:27PM

22
#96 - Robert Newbould / c0nspiracy

06/29/2016 at 04:50PM

22
#97 - André Peric Tavares / AndrePeric

07/20/2016 at 11:33PM

22
#98 - James / Dronak

08/03/2016 at 11:30PM

22
#99 - Lukas Kruemel / KruemelKobold

10/06/2016 at 09:55AM

22
#100 - TweetDreams / TweetMusicians

10/09/2016 at 04:49AM

22
#101 - Brian Hall / _bruab_

03/09/2017 at 03:19PM

22
#102 - caplod / caplod

03/26/2017 at 10:49AM

23
#103 - Georg Grauberger / GeorgGrauberger

04/18/2016 at 02:35PM

23
#104 - Eleanor Weigert / EleanorClarinet

05/14/2016 at 12:18AM

23
#105 - Mikkel Knudsen / mikk2168

09/28/2016 at 02:22AM

24
#106 - Hans Yelek / hans_yelek

01/12/2017 at 03:37AM

28
#107 - Tose / Toseim

04/17/2016 at 10:14AM

29
#108 - Gracjan Grala / gracjangrala

06/03/2016 at 02:39PM

30
#109 - José Miguel González / jmgaguilera

04/17/2016 at 09:58AM

33
#110 - Anoop Kumar / anooplive

04/15/2016 at 12:48AM

33
#111 - matt_todd / matt_todd

04/15/2016 at 11:27PM

33
#112 - Arnold Manzano / arnoldmanzano

04/19/2016 at 06:53AM

38
#113 - Michael Foley / m1foley

04/14/2016 at 11:58PM

40
#114 - Niru Maheswaranathan / niru_m

04/15/2016 at 03:45AM

40
#115 - mojito / simplihot

04/18/2016 at 11:19AM

41
#116 - Avery Wilkening / awilkening

06/29/2016 at 07:35PM

42
#117 - wall2flower / wall2flower

06/04/2016 at 05:43PM