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):
11
#271 - Lindsay Swift / @_lindsai_

07/07/2015 at 09:22PM

11
#272 - Endre Galaczi / @galacziendre

07/30/2015 at 02:47PM

11
#273 - Sergey Semushin / @Predelnik

09/01/2015 at 06:15AM

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

10/26/2015 at 08:00PM

11
#275 - Janine Cheng / @janineist

02/14/2016 at 03:38AM

11
#276 - Tj / @yrddy

02/22/2016 at 04:54AM

11
#277 - Kostas / @blackraven_13

02/26/2016 at 03:17AM

11
#278 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:28PM

11
#279 - Michael Potter / @MicLeviPotter

03/04/2016 at 06:53PM

11
#280 - Dimitar Dimitrov / @kurkale6ka

03/14/2016 at 03:51PM

11
#281 - Jan Bundesmann / @janbundesmann

04/13/2016 at 01:10PM

11
#282 - Samuel Masuy / @samasuy

04/14/2016 at 12:08AM

11
#283 - Netrisk Cool / @C00lt0

10/04/2016 at 02:17PM

11
#284 - TweetDreams / @TweetMusicians

10/10/2016 at 04:00PM

11
#285 - Kyouma / @kyoumaJohn

10/14/2016 at 05:36PM

11
#286 - BareTull / @BareTull3

12/12/2017 at 11:12AM

11
#287 - LC / @leeren

03/02/2018 at 10:25AM

11
#288 - Víctor López / @viticlick

08/23/2018 at 09:35AM

11
#289 - Ariel Miculas / @ArielMiculas

09/25/2019 at 04:16PM

11
#290 - RockerZZY / @rocker_zzy

06/08/2020 at 01:30PM

11
#291 - Adi / @adi2004

09/23/2024 at 03:27PM

12
#292 - zmf_tim / @zmf_tim

08/31/2013 at 10:56PM

12
#293 - Christopher Norris / @__c_norris__

09/01/2013 at 12:58AM

12
#294 - Fernando Axel Ellis / @Axel_Ellis

09/06/2013 at 04:19PM

12
#295 - atemeresclencare / @kfzhyzdj

09/13/2013 at 10:21PM

12
#296 - Hawk Newton / @hawknewton

09/17/2013 at 01:48AM

12
#297 - Víctor Brigé / @vbrige

09/17/2013 at 08:22PM

12
#298 - Steven Weller / @suweller

09/26/2013 at 03:28PM

12
#299 - Fedor Stepanov / @yasorrat

09/28/2013 at 03:15PM

12
#300 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:53PM