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 158 remaining solutions by signing in and submitting your own entry
#159 白猫(zhu) / @cat2flower - 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: @holalluis

159 active golfers, 591 entries

Leaderboard (lowest score wins):
33
#151 - Arnold Manzano / @arnoldmanzano

04/19/2016 at 06:53AM

36
#152 - Jurica / @Jurica34581259

11/16/2018 at 04:39PM

38
#153 - Michael Foley / @m1foley

04/14/2016 at 11:58PM

38
#154 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 03:22PM

38
#155 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 08:03PM

40
#156 - Niru Maheswaranathan / @niru_m

04/15/2016 at 03:45AM

40
#157 - mojito / @simplihot

04/18/2016 at 11:19AM

41
#158 - Avery Wilkening / @awilkening

06/29/2016 at 07:35PM

42
#159 - 白猫(zhu) / @cat2flower

06/04/2016 at 05:43PM