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 52222f6ea98cbe0002000078

Letter case trickery

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

Start file
A4E SUM 3C0Z
2B A9 NE F2Z
End file
a4e SUM 3c0Z
2b a9 NE f2Z

View Diff

1,2c1,2
< A4E SUM 3C0Z
< 2B A9 NE F2Z
---
> a4e SUM 3c0Z
> 2b a9 NE f2Z

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 521 remaining solutions by signing in and submitting your own entry
#522 Thomas Feiler / @SirTibsTibsford - Score: 45 - 09/04/13 @ 21:23
:%s-\<\([0-9A-F]\+\)\([Z$]*\)\>-\L\1\E\2-g<CR>ZZ

0 comments


#523 mathac / @mathacgolf - Score: 45 - 05/05/14 @ 19:29
:%s/A\|E\|C\|\B\|F/\L&/g<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>4<CR>ZZ

0 comments


Created by: @NbTson

523 active golfers, 1664 entries

Leaderboard (lowest score wins):
17
#481 - Ryan van Rensburg / @rdvr001

07/23/2016 at 08:25AM

17
#482 - Brent Woo / @BrentPWoo

10/11/2018 at 02:43PM

17
#483 - Ray Dennis / @raysden

01/05/2021 at 10:25PM

18
#484 - Sukesan1984 / @sukesan1984

09/12/2013 at 11:55AM

18
#485 - Francesco Negri / @dhinus

09/17/2013 at 10:28AM

18
#486 - Salleyron Julien / @juguul

12/31/2013 at 09:47AM

18
#487 - Aaron Bohannon / @morefun2compute

02/28/2014 at 11:32PM

18
#488 - Jesse Hixson / @jhixson

06/20/2014 at 09:04PM

18
#489 - Vimfiz / @vimfiz

04/26/2019 at 06:44PM

19
#490 - John Bohn / @jjbohn

09/03/2013 at 09:30PM

19
#491 - Dary Merckens / @merckens

09/23/2013 at 06:33AM

19
#492 - Lorcan McDonald / @lorcanmcdonald

10/31/2013 at 03:16PM

19
#493 - wilddog64 / @chengkai318

12/17/2013 at 05:35PM

19
#494 - LumberCoder / @LuRsT

01/28/2014 at 06:32PM

19
#495 - Victor Alessandro / @VictorAlessand4

02/05/2014 at 03:07AM

19
#496 - LLiseil / @lliseil

07/17/2014 at 05:26PM

19
#497 - Alex Wang / @a1exwang

07/15/2016 at 07:04AM

19
#498 - Fabio Branquinho / @branquif

11/12/2018 at 08:32PM

19
#499 - Jakob Föger / @drvolcano86

02/17/2023 at 02:34PM

20
#500 - Matej Nanut / @MatejNanut

08/31/2013 at 09:05PM

20
#501 - foo / @foo88832727

10/18/2013 at 03:04PM

20
#502 - Brian Peiris / @brianpeiris

12/28/2013 at 04:47AM

20
#503 - Pedro B. Coronel / @pbcoronel

01/28/2014 at 02:14AM

20
#504 - Jean-PhilippeBurelle / @jpburelle

03/02/2014 at 04:31AM

21
#505 - Munen / @preek

11/13/2013 at 04:28PM

21
#506 - WoljaIlpapa / @WoljaIlpapa

12/20/2013 at 03:51AM

22
#507 - Marcelo Paez / @paezao

09/04/2013 at 10:46AM

22
#508 - Jonathan Potter / @nTypeRed

11/11/2013 at 06:22AM

22
#509 - Ilya Ermolin / @ermolinis

11/18/2013 at 09:39AM

22
#510 - Mohit Sharma / @m0hitsharma

12/30/2013 at 12:23AM