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

0 comments


#518 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

518 active golfers, 1630 entries

Leaderboard (lowest score wins):
18
#481 - Francesco Negri / @dhinus

09/17/2013 at 10:28AM

18
#482 - Salleyron Julien / @juguul

12/31/2013 at 09:47AM

18
#483 - Aaron Bohannon / @morefun2compute

02/28/2014 at 11:32PM

18
#484 - Jesse Hixson / @jhixson

06/20/2014 at 09:04PM

18
#485 - Vimfiz / @vimfiz

04/26/2019 at 06:44PM

19
#486 - John Bohn / @jjbohn

09/03/2013 at 09:30PM

19
#487 - Dary Merckens / @merckens

09/23/2013 at 06:33AM

19
#488 - Lorcan McDonald / @lorcanmcdonald

10/31/2013 at 03:16PM

19
#489 - wilddog64 / @chengkai318

12/17/2013 at 05:35PM

19
#490 - LumberCoder / @LuRsT

01/28/2014 at 06:32PM

19
#491 - Victor Alessandro / @VictorAlessand4

02/05/2014 at 03:07AM

19
#492 - LLiseil / @lliseil

07/17/2014 at 05:26PM

19
#493 - Alex Wang / @a1exwang

07/15/2016 at 07:04AM

19
#494 - Fabio Branquinho / @branquif

11/12/2018 at 08:32PM

19
#495 - Jakob Föger / @drvolcano86

02/17/2023 at 02:34PM

20
#496 - Matej Nanut / @MatejNanut

08/31/2013 at 09:05PM

20
#497 - foo / @foo88832727

10/18/2013 at 03:04PM

20
#498 - Brian Peiris / @brianpeiris

12/28/2013 at 04:47AM

20
#499 - Pedro B. Coronel / @pbcoronel

01/28/2014 at 02:14AM

20
#500 - Jean-PhilippeBurelle / @jpburelle

03/02/2014 at 04:31AM

21
#501 - Munen / @preek

11/13/2013 at 04:28PM

21
#502 - WoljaIlpapa / @WoljaIlpapa

12/20/2013 at 03:51AM

22
#503 - Marcelo Paez / @paezao

09/04/2013 at 10:46AM

22
#504 - Jonathan Potter / @nTypeRed

11/11/2013 at 06:22AM

22
#505 - Ilya Ermolin / @ermolinis

11/18/2013 at 09:39AM

22
#506 - Mohit Sharma / @m0hitsharma

12/30/2013 at 12:23AM

22
#507 - Chirag Tailor / @ctailor2

01/27/2014 at 05:36PM

23
#508 - Ian Oxley / @ianoxley

10/22/2013 at 03:33PM

23
#509 - DESCHAMPS Henrick / @H3nr1ck_

10/26/2013 at 07:22PM

23
#510 - Sam Calvert / @Sammcalvertt

10/27/2018 at 09:38PM