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

0 comments


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

481 active golfers, 1451 entries

Leaderboard (lowest score wins):
9
#1 - Urtica dioica / @udioica

04/13/2016 at 03:03AM

9
#2 - fake geek guy / @light_rook

04/13/2016 at 11:58PM

9
#3 - John Braxler / @braxler

04/22/2016 at 07:00PM

9
#4 - jdupont655 / @jdupont655

09/04/2016 at 07:01PM

9
#5 - trx / @trxdbg

10/15/2016 at 06:00AM

9
#6 - Pierre Maoui / @poupougnac

12/27/2016 at 04:48PM

9
#7 - Saurav Mitra / @SauravMitra11

12/31/2016 at 12:23PM

9
#8 - Saki Gw / @Sakigw

01/21/2017 at 12:19AM

9
#9 - Zhihong Liu / @pieapple03

02/28/2017 at 03:25PM

9
#10 - Remus Dalrymple / @bornintheflames

05/06/2017 at 09:42PM

9
#11 - 梧桐王子 / @WutongYujie

05/07/2017 at 02:50AM

9
#12 - Avian Y / @y_avian

06/28/2017 at 08:07PM

9
#13 - Bennett Bernardoni / @BBernardoni

07/03/2017 at 08:19PM

9
#14 - Turkey Man / @lvturkeyman

11/11/2017 at 03:13PM

9
#15 - BarbaJol / @drpproteus

12/31/2017 at 02:11PM

9
#16 - Dominic Z / @thammaaa

01/25/2018 at 04:59PM

9
#17 - ParasamGateZero / @ParasamGateZero

02/16/2018 at 05:40AM

9
#18 - Guirec CORBEL / @GuirecCorbel

04/08/2018 at 12:51AM

9
#19 - DHM / @DHM29978992

04/25/2018 at 01:28AM

9
#20 - Arijus / @argshook

07/19/2018 at 12:47PM

9
#21 - fucus / @fishlovebanana

08/12/2018 at 03:10AM

9
#22 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 08:45AM

9
#23 - Sxcy / @SxcyX

10/22/2018 at 09:23PM

9
#24 - Dax / @zacoxi

11/13/2018 at 08:49AM

9
#25 - alekfed / @alek_fed

04/15/2019 at 03:28PM

9
#26 - majo senf / @majo_senf

06/19/2019 at 10:56AM

9
#27 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 06:01PM

9
#28 - Miłosz Łakomy / @foobar01123

08/27/2019 at 11:37AM

10
#29 - Bunwut Tson / @NbTson

08/31/2013 at 11:58PM

10
#30 - Stephen Drodge / @sjdrodge

09/01/2013 at 01:40AM