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 18 remaining solutions by signing in and submitting your own entry
#19 w1zeman1p / wizemanip - Score: 28 - 11/09/14 @ 18:52
6YqqDJ:%s,<C-R>"<CR>ggq5@q"oP"0P<Esc>ZZ

0 comments

#20 Ram Tamtam / ramtamtamtam - Score: 29 - 09/10/14 @ 12:10
"ay5jqqy$:%s,<C-R>"<CR>ggddq5@q"aPZZ

0 comments

#21 Carlos López / morrizon - Score: 29 - 09/10/14 @ 17:46
qqY:<C-F>i<C-R><C-O>0<Up>8,$s/<Esc>f,r/<CR><C-O>jq5@qZZ

0 comments

#22 jessepye / jessepye - Score: 29 - 09/10/14 @ 20:18
"ay5jqqy$:%s,<C-R>"<CR>ggddq5@q"aPZZ

0 comments

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

23 active golfers, 57 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

19
#10 - Caek / Caek_

09/11/2014 at 04:17AM

20
#11 - Matthieu Crapet / mcr05

01/31/2015 at 11:13AM

20
#12 - Jon Krause / jkrause314

01/24/2016 at 04:09AM

21
#13 - Kai Yuan / kentyuan

09/10/2014 at 01:13PM

21
#14 - Zapata / Incredible_JFP

10/26/2014 at 10:28AM

21
#15 - eBrnd / eBrnd

11/03/2014 at 07:02PM

23
#16 - Carlos A Henríquez Q / lagunex

01/18/2015 at 02:59PM

25
#17 - mnx / mnxx

09/10/2014 at 02:42PM

26
#18 - Dario Avitabile / tutticapaci

09/10/2014 at 03:24PM

28
#19 - w1zeman1p / wizemanip

11/09/2014 at 06:52PM

29
#20 - Ram Tamtam / ramtamtamtam

09/10/2014 at 12:10PM

29
#21 - Carlos López / morrizon

09/10/2014 at 05:46PM

29
#22 - jessepye / jessepye

09/10/2014 at 08:18PM

55
#23 - Oliver Christ / 0liverChrist

02/13/2015 at 08:42PM