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

0 comments


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

498 active golfers, 1547 entries

Leaderboard (lowest score wins):
11
#241 - kwa / @kwa129

07/08/2014 at 04:20AM

11
#242 - playalong / @playwithit42

07/08/2014 at 11:31AM

11
#243 - Caek / @Caek_

07/31/2014 at 03:23AM

11
#244 - Alex / @ninjabassist777

07/31/2014 at 02:45PM

11
#245 - Vim Fandango / @VimFandango

08/14/2014 at 02:16PM

11
#246 - Vim Golfer / @golfing_vim

09/04/2014 at 07:01PM

11
#247 - Dario Avitabile / @tutticapaci

09/08/2014 at 12:48PM

11
#248 - Noah Ruderman / @noahc66260

10/04/2014 at 09:32AM

11
#249 - Jose Gutierrez / @Jogusa

10/07/2014 at 11:26PM

11
#250 - Sabiki94@ブルスクの人 / @_jptomoya

10/18/2014 at 03:00AM

11
#251 - eBrnd / @eBrnd

11/02/2014 at 03:50PM

11
#252 - Matt / @mcr05

11/03/2014 at 11:00AM

11
#253 - kungfuchad / @kungfuchad

11/10/2014 at 01:48PM

11
#254 - Jan Novak / @odpadnimail

11/20/2014 at 02:26AM

11
#255 - david hu / @chin33z

12/17/2014 at 03:03PM

11
#256 - no name / @vimgol

01/28/2015 at 07:06PM

11
#257 - mark0829 / @mark0829

01/31/2015 at 11:30AM

11
#258 - Garrett Smith / @garrettwhsmith

03/29/2015 at 05:33PM

11
#259 - Robin Moussu / @robin_moussu

03/30/2015 at 05:32PM

11
#260 - pftb12345 / @pftb12345

04/07/2015 at 04:56AM

11
#261 - Benny Wong / @bdotdub

04/28/2015 at 03:17PM

11
#262 - Lindsay Swift / @_lindsai_

07/07/2015 at 09:22PM

11
#263 - Endre Galaczi / @galacziendre

07/30/2015 at 02:47PM

11
#264 - Sergey Semushin / @Predelnik

09/01/2015 at 06:15AM

11
#265 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 08:00PM

11
#266 - Janine Cheng / @janineist

02/14/2016 at 03:38AM

11
#267 - Tj / @yrddy

02/22/2016 at 04:54AM

11
#268 - Kostas / @blackraven_13

02/26/2016 at 03:17AM

11
#269 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:28PM

11
#270 - Michael Potter / @MicLeviPotter

03/04/2016 at 06:53PM