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

0 comments


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

468 active golfers, 1403 entries

Leaderboard (lowest score wins):
17
#421 - Nick Bakkegaard / @Bakkemand

09/18/2013 at 11:32AM

17
#422 - Daniel Marjenburgh / @dmarjenburgh

11/17/2013 at 02:47PM

17
#423 - John Hilts / @johnhilts

02/04/2014 at 07:38AM

17
#424 - Aurélien Vallée / @aurelienvallee

02/04/2014 at 11:48AM

17
#425 - daveseibert / @daveseibert

05/09/2014 at 09:08PM

17
#426 - Andreas Heider / @AndreasHeider

05/30/2014 at 09:09PM

17
#427 - AC / @quadface

08/23/2014 at 07:08PM

17
#428 - luffy / @raxcoi

12/24/2014 at 01:50PM

17
#429 - chvzvhn / @chvzvhn

04/28/2015 at 12:33AM

17
#430 - Ryan van Rensburg / @rdvr001

07/23/2016 at 08:25AM

17
#431 - Brent Woo / @BrentPWoo

10/11/2018 at 02:43PM

18
#432 - Sukesan1984 / @sukesan1984

09/12/2013 at 11:55AM

18
#433 - Francesco Negri / @dhinus

09/17/2013 at 10:28AM

18
#434 - Salleyron Julien / @juguul

12/31/2013 at 09:47AM

18
#435 - Aaron Bohannon / @morefun2compute

02/28/2014 at 11:32PM

18
#436 - Jesse Hixson / @jhixson

06/20/2014 at 09:04PM

19
#437 - John Bohn / @jjbohn

09/03/2013 at 09:30PM

19
#438 - Dary Merckens / @merckens

09/23/2013 at 06:33AM

19
#439 - Lorcan McDonald / @lorcanmcdonald

10/31/2013 at 03:16PM

19
#440 - wilddog64 / @chengkai318

12/17/2013 at 05:35PM

19
#441 - LumberCoder / @LuRsT

01/28/2014 at 06:32PM

19
#442 - Victor Alessandro / @VictorAlessand4

02/05/2014 at 03:07AM

19
#443 - LLiseil / @lliseil

07/17/2014 at 05:26PM

19
#444 - Alex Wang / @a1exwang

07/15/2016 at 07:04AM

19
#445 - Fabio Branquinho / @branquif

11/12/2018 at 08:32PM

20
#446 - Matej Nanut / @MatejNanut

08/31/2013 at 09:05PM

20
#447 - foo / @foo88832727

10/18/2013 at 03:04PM

20
#448 - Brian Peiris / @brianpeiris

12/28/2013 at 04:47AM

20
#449 - Pedro B. Coronel / @pbcoronel

01/28/2014 at 02:14AM

20
#450 - Jean-PhilippeBurelle / @jpburelle

03/02/2014 at 04:31AM