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):
12
#301 - kemar / @le_kemar

08/22/2014 at 01:29PM

12
#302 - howard lin / @howardlin0020

09/05/2014 at 08:35PM

12
#303 - David Tabachnikov / @davidtab

10/01/2014 at 12:40PM

12
#304 - Carlos A HenrĂ­quez Q / @lagunex

01/19/2015 at 02:05PM

12
#305 - SilentFl / @Silent_Fl

01/27/2015 at 09:05AM

12
#306 - TheProgrammer971 / @tp971

03/14/2015 at 11:35PM

12
#307 - Deepak Surti / @dmsurti

03/18/2015 at 09:20AM

12
#308 - shugen / @shugeno

03/23/2015 at 08:47PM

12
#309 - kandrey999 / @kandrey999

04/06/2015 at 04:16PM

12
#310 - Stefan Knudsen / @knud32

06/12/2015 at 11:23PM

12
#311 - E.O. Stinson / @yostinso

06/20/2015 at 01:22AM

12
#312 - Gerald Tilma / @GeraldTilma

10/18/2015 at 07:44PM

12
#313 - Durga Swaroop Perla / @durgaswaroop

02/20/2016 at 07:32PM

12
#314 - Chenut Ludovic / @7Brwa7

04/01/2016 at 10:58AM

12
#315 - Andres Araya / @arayaandresfco

05/21/2016 at 01:38AM

12
#316 - Ben Hill / @KaizenSoze70

06/14/2016 at 12:15AM

12
#317 - Jeremiah Goyette / @JeremiahGoyette

08/02/2016 at 05:16AM

12
#318 - Sergio / @voyeg3r

09/24/2017 at 04:04PM

12
#319 - GreenPinguin / @GreenPinguin2

04/24/2018 at 10:22AM

12
#320 - hails3 / @hails33

05/28/2018 at 04:06PM

12
#321 - Jonathan Camilleri / @Too_Many_Taken

06/02/2018 at 11:53AM

12
#322 - towc / @MateiCopot

07/08/2018 at 03:37PM

12
#323 - Marius Jurgelenas / @MarenasLT

07/19/2018 at 12:41PM

12
#324 - chaotic / @laersn

09/07/2018 at 01:47PM

13
#325 - Hachez Floran / @FloranHachez

09/02/2013 at 11:33AM

13
#326 - Pierre Langlois / @_pierrelanglois

09/02/2013 at 04:22PM

13
#327 - Elias Dorneles / @eliasdorneles

09/03/2013 at 03:59AM

13
#328 - RobertT / @techrt2050

09/03/2013 at 04:11AM

13
#329 - Andrew Crites / @ExplosionPills

09/11/2013 at 02:09PM

13
#330 - Ingo / @ist3fani

09/11/2013 at 05:16PM