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):
13
#331 - Bailey Ling / @blingcoder

09/12/2013 at 03:30AM

13
#332 - brett / @brettyukich

09/18/2013 at 09:40AM

13
#333 - Jesse Nazario / @jessenzr

10/17/2013 at 07:30PM

13
#334 - Corey Glynn / @albedoa

10/19/2013 at 10:37AM

13
#335 - Gemma Lynn / @ellotheth

10/22/2013 at 05:14AM

13
#336 - J. Nick Terry / @deft_code

10/23/2013 at 08:31PM

13
#337 - A. N. / @arez42

10/24/2013 at 05:38AM

13
#338 - mwcz / @mwcz

10/30/2013 at 08:10PM

13
#339 - david ta / @tadavid

11/21/2013 at 08:33PM

13
#340 - Petr Broz / @ipetrbroz

12/17/2013 at 10:46PM

13
#341 - winterlight / @winterlight4

12/22/2013 at 10:13PM

13
#342 - Travis Rodman / @TravisRodman

01/07/2014 at 07:20AM

13
#343 - Andreas Källberg / @Anka213

01/16/2014 at 11:51PM

13
#344 - Mark Wart / @2mando

01/28/2014 at 11:16AM

13
#345 - Chris Ciulla / @chris_ciulla

01/30/2014 at 01:26AM

13
#346 - mattsalacain / @mattsalacain

01/30/2014 at 10:33PM

13
#347 - jimauthors / @jimauthors

01/31/2014 at 11:49PM

13
#348 - ひげまにや / @higemaniya

02/01/2014 at 07:07AM

13
#349 - Amy Lim / @chasingkytes

02/03/2014 at 12:25AM

13
#350 - Jonny / @Jonnytron

02/11/2014 at 04:49AM

13
#351 - Spencer McAlpine / @spencermcalpine

02/11/2014 at 01:53PM

13
#352 - Bart Nagel / @bjnagel

02/20/2014 at 09:11AM

13
#353 - asdf / @201679996

03/18/2014 at 10:52AM

13
#354 - Felipe Jaramillo F / @mrfelipe

04/05/2014 at 03:19AM

13
#355 - Peter Strawson / @PeterStrawson

04/08/2014 at 09:31PM

13
#356 - Bryan McKelvey / @bryanmckelvey

04/28/2014 at 12:52AM

13
#357 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 03:52AM

13
#358 - April Gentle / @chen327684096

08/22/2014 at 11:15AM

13
#359 - A / @Tower_1980

11/10/2014 at 10:38AM

13
#360 - .さとうにるぽ引退.swp / @nillpo

01/05/2015 at 07:15AM