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 541022801a2d8b0002238a17

Roman numerals

Use the substitutions on top to convert unary to Roman numerals.

Start file
IIIII,V
IIII,IV
VV,X
VIV,IX
XXXXX,L
XXXX,XL

III
IIII
IIIII
IIIIIII
IIIIIIIII
IIIIIIIIII
IIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
 vim: set gdefault:
End file
IIIII,V
IIII,IV
VV,X
VIV,IX
XXXXX,L
XXXX,XL

III
IV
V
VII
IX
X
XVIII
XXI
XXXIX
XL
XLIV
L
LXIV
 vim: set gdefault:

View Diff

9,20c9,20
< IIII
< IIIII
< IIIIIII
< IIIIIIIII
< IIIIIIIIII
< IIIIIIIIIIIIIIIIII
< IIIIIIIIIIIIIIIIIIIII
< IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
< IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
< IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
< IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
< IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
---
> IV
> V
> VII
> IX
> X
> XVIII
> XXI
> XXXIX
> XL
> XLIV
> L
> LXIV

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 28 remaining solutions by signing in and submitting your own entry
#29 Oliver Christ / @0liverChrist - Score: 55 - 02/13/15 @ 20:42
qqvt,"ayf,lv<End>h"by8GV20G:s/<C-R>a/<C-R>b<CR>q2G@q3G@q4G@@5G@@6G@@ZZ

0 comments


Created by: @udioica

29 active golfers, 81 entries

Leaderboard (lowest score wins):
17
#1 - Tim Chase / @gumnos

09/10/2014 at 01:05PM

17
#2 - Kerson Hsiao / @KersonHsiao

09/10/2014 at 01:05PM

17
#3 - John Braxler / @braxler

09/10/2014 at 05:09PM

17
#4 - Urtica dioica / @udioica

09/10/2014 at 05:22PM

17
#5 - Petro Тrouq / @zulolosi

09/10/2014 at 08:16PM

17
#6 - Fan Zhang / @2bDeactivat3d

09/13/2014 at 01:56AM

17
#7 - Mattias Fransson / @azzidoos

09/15/2014 at 08:17PM

17
#8 - Michael Comerford / @MComerford1

09/16/2014 at 12:26AM

17
#9 - pftb12345 / @pftb12345

04/26/2015 at 12:08AM

17
#10 - Peppa Pig / @PeppaPi95550250

06/15/2024 at 08:22AM

17
#11 - nickGPT / @nickandbro

08/28/2024 at 11:21AM

19
#12 - Caek / @Caek_

09/11/2014 at 04:17AM

19
#13 - quemeraisc / @quemeraisc

06/02/2022 at 10:07AM

20
#14 - Matt / @mcr05

01/31/2015 at 11:13AM

20
#15 - Jon Krause / @jkrause314

01/24/2016 at 04:09AM

21
#16 - Kai Yuan / @kentyuan

09/10/2014 at 01:13PM

21
#17 - Zapata / @Incredible_JFP

10/26/2014 at 10:28AM

21
#18 - eBrnd / @eBrnd

11/03/2014 at 07:02PM

23
#19 - Carlos A Henríquez Q / @lagunex

01/18/2015 at 02:59PM

25
#20 - mnx / @mnxx

09/10/2014 at 02:42PM

26
#21 - Dario Avitabile / @tutticapaci

09/10/2014 at 03:24PM

27
#22 - James / @Dronak

12/02/2022 at 05:09PM

28
#23 - CJ Avilla / @cjav_dev

11/09/2014 at 06:52PM

29
#24 - Ram Tamtam / @ramtamtamtam

09/10/2014 at 12:10PM

29
#25 - Carlos López / @morrizon

09/10/2014 at 05:46PM

29
#26 - jessepye / @jessepye

09/10/2014 at 08:18PM

29
#27 - Michael Herring / @mayoroftuesday

12/23/2021 at 03:38PM

52
#28 - Bitt Faulk / @bittfaulk

03/09/2020 at 04:49PM

55
#29 - Oliver Christ / @0liverChrist

02/13/2015 at 08:42PM