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):
10
#151 - Carl Egbert / @CarlOEgbert

06/13/2017 at 12:40AM

10
#152 - Harsh Kumar / @datsleepyguy

06/25/2017 at 06:58PM

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

06/15/2018 at 06:34PM

10
#154 - qed / @qed13308565

07/25/2018 at 05:00PM

10
#155 - PCS Solutions / @PeteSolutions

08/15/2018 at 09:35PM

10
#156 - name / @name65894813

11/22/2018 at 12:10AM

10
#157 - Mihai / @mihaicristiant

12/08/2018 at 01:22PM

10
#158 - churaki / @churaki

01/27/2019 at 10:16AM

10
#159 - Chester Yap / @Chest_ErYap

07/28/2019 at 11:49PM

10
#160 - Jason Neylon / @jasonneylon

03/31/2020 at 06:01PM

10
#161 - Jason / @roosjason

06/11/2020 at 10:18AM

10
#162 - roudens / @roudens2

12/31/2020 at 08:57AM

10
#163 - Georg Bökman / @BokmanGeorg

07/06/2021 at 01:32PM

10
#164 - Michel Viktor / @tomkpz

08/02/2021 at 03:12AM

10
#165 - Jean George / @JeanGeo20504212

10/12/2021 at 04:45PM

11
#166 - Tim Chase / @gumnos

08/31/2013 at 06:29PM

11
#167 - Dan / @opello

08/31/2013 at 07:34PM

11
#168 - Pablo Caro / @pcaro90

08/31/2013 at 08:21PM

11
#169 - Lars Storjord / @lstor

08/31/2013 at 09:10PM

11
#170 - Nathan / @NathanHarperoni

09/01/2013 at 01:42AM

11
#171 - farseer / @FarseerSee2012

09/01/2013 at 02:54AM

11
#172 - James / @Dronak

09/01/2013 at 03:24AM

11
#173 - Steve Tjoa / @stevetjoa

09/01/2013 at 04:28AM

11
#174 - joe di castro / @joe_di_castro

09/01/2013 at 07:56AM

11
#175 - Kai Yuan / @kentyuan

09/01/2013 at 11:57AM

11
#176 - mnx / @mnxx

09/01/2013 at 08:40PM

11
#177 - Trevor Powell / @DoomedBunnies

09/01/2013 at 10:27PM

11
#178 - buz / @buzbone

09/02/2013 at 08:42AM

11
#179 - Dom Armstrong / @dom_cycleface

09/03/2013 at 01:08PM

11
#180 - cj / @cj01101

09/03/2013 at 05:24PM