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):
10
#121 - Wilmer Bandres / @WilmerBandres

12/16/2015 at 05:40PM

10
#122 - jackliusr / @jackliusr

01/13/2016 at 10:52AM

10
#123 - Jon Krause / @jkrause314

01/27/2016 at 09:24AM

10
#124 - Aleksey Zhidkov / @AlexeyZhidkov

02/08/2016 at 03:16PM

10
#125 - ben kavanagh / @bkava

02/23/2016 at 07:06PM

10
#126 - Roberto Carraretto / @robcarraretto

02/27/2016 at 02:51PM

10
#127 - John Smith / @literacyisgood

03/25/2016 at 07:41PM

10
#128 - Tyler / @tylerbindon

04/13/2016 at 03:56AM

10
#129 - Joseph J. Piché / @jjpiche

04/13/2016 at 04:03AM

10
#130 - Ram Tamtam / @ramtamtamtam

06/28/2016 at 09:21AM

10
#131 - Benjamin Espey / @bennyty

07/28/2016 at 02:06PM

10
#132 - André Peric Tavares / @AndrePeric

07/30/2016 at 05:30PM

10
#133 - Will / @obiwan__k3n00bi

08/17/2016 at 03:56AM

10
#134 - Stephen Aument / @saument

09/04/2016 at 04:37AM

10
#135 - 알카포 / @alkpo12

09/10/2016 at 09:23AM

10
#136 - timerella® / @timerella

11/17/2016 at 01:28AM

10
#137 - Yann / @yannstadnicki

02/25/2017 at 06:12AM

10
#138 - Daniel / @Daniel00288663

03/27/2017 at 02:48PM

10
#139 - Rami Hovi / @hacker_lawyer

05/20/2017 at 06:34AM

10
#140 - Carl Egbert / @CarlOEgbert

06/13/2017 at 12:40AM

10
#141 - Harsh Kumar / @datsleepyguy

06/25/2017 at 06:58PM

10
#142 - J. Lurch-artz / @JKirchartz

06/15/2018 at 06:34PM

10
#143 - qed / @qed13308565

07/25/2018 at 05:00PM

10
#144 - PCS Solutions / @PeteSolutions

08/15/2018 at 09:35PM

11
#145 - Tim Chase / @gumnos

08/31/2013 at 06:29PM

11
#146 - Dan / @opello

08/31/2013 at 07:34PM

11
#147 - Pablo Caro / @pcaro90

08/31/2013 at 08:21PM

11
#148 - Lars Storjord / @lstor

08/31/2013 at 09:10PM

11
#149 - Nathan / @NathanHarperoni

09/01/2013 at 01:42AM

11
#150 - farseer / @FarseerSee2012

09/01/2013 at 02:54AM