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 by @kentyuan:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @udioica

29 active golfers, 81 entries

Solutions by @kentyuan:
21
#16 - Kai Yuan / @kentyuan

09/10/2014 at 01:13PM