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):
10
#151 - Stephen Aument / @saument

09/04/2016 at 04:37AM

10
#152 - 알카포 / @alkpo12

09/10/2016 at 09:23AM

10
#153 - timerella® / @timerella

11/17/2016 at 01:28AM

10
#154 - Yann / @yannstad

02/25/2017 at 06:12AM

10
#155 - Daniel / @Daniel00288663

03/27/2017 at 02:48PM

10
#156 - Rami Hovi / @hacker_lawyer

05/20/2017 at 06:34AM

10
#157 - Carl Egbert / @CarlOEgbert

06/13/2017 at 12:40AM

10
#158 - Harsh Kumar / @datsleepyguy

06/25/2017 at 06:58PM

10
#159 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

06/15/2018 at 06:34PM

10
#160 - qed / @qed13308565

07/25/2018 at 05:00PM

10
#161 - PCS Solutions / @PeteSolutions

08/15/2018 at 09:35PM

10
#162 - name / @name65894813

11/22/2018 at 12:10AM

10
#163 - Mihai / @mihaicristiant

12/08/2018 at 01:22PM

10
#164 - churaki / @churaki

01/27/2019 at 10:16AM

10
#165 - Chester Yap / @Chest_ErYap

07/28/2019 at 11:49PM

10
#166 - Jason Neylon / @jasonneylon

03/31/2020 at 06:01PM

10
#167 - Jason / @roosjason

06/11/2020 at 10:18AM

10
#168 - roudens / @roudens2

12/31/2020 at 08:57AM

10
#169 - Georg Bökman / @BokmanGeorg

07/06/2021 at 01:32PM

10
#170 - Michel Viktor / @tomkpz

08/02/2021 at 03:12AM

10
#171 - Jean George / @JeanGeo20504212

10/12/2021 at 04:45PM

10
#172 - Andy Tockman / @atckmn

07/16/2022 at 03:48AM

10
#173 - someone / @IKvacenok

07/15/2023 at 12:03PM

10
#174 - luke37842 / @luke37842

11/12/2024 at 05:59PM

11
#175 - Tim Chase / @gumnos

08/31/2013 at 06:29PM

11
#176 - Dan / @opello

08/31/2013 at 07:34PM

11
#177 - Pablo Caro / @pcaro90

08/31/2013 at 08:21PM

11
#178 - Lars Storjord / @lstor

08/31/2013 at 09:10PM

11
#179 - Nathan / @NathanHarperoni

09/01/2013 at 01:42AM

11
#180 - farseer / @FarseerSee2012

09/01/2013 at 02:54AM