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 4dab05bff1161c5a78000011

Sort the cardinal numbers

Maybe a simple challenge.

Start file
Zero
One
Two
Three
Four
Five
Six
Seventeen
Sixteen
Fifteen
Fourteen
Thirteen
Twelve
Eleven
Ten
Nine
Eight
Seven
Eighteen
Nineteen
Twenty
Twenty-one
End file
Zero
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Sixteen
Seventeen
Eighteen
Nineteen
Twenty
Twenty-one

View Diff

8,17d7
< Seventeen
< Sixteen
< Fifteen
< Fourteen
< Thirteen
< Twelve
< Eleven
< Ten
< Nine
< Eight
18a9,18
> Eight
> Nine
> Ten
> Eleven
> Twelve
> Thirteen
> Fourteen
> Fifteen
> Sixteen
> Seventeen

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 122 remaining solutions by signing in and submitting your own entry
#123 Robert Robotter / @robrob12 - Score: 99 - 07/19/11 @ 09:13
18Gdd7Gp18Gdd8Gp18Gdd9Gp18Gdd10Gp18:<Esc><Esc>18Gdd11Go<Esc>up18Gdd12Gp18Gdd13Gp18Gdd14Gp18Gdd15Gp18Gdd16Gp<Esc>:x<CR>

0 comments


Created by: @h_east

123 active golfers, 219 entries

Leaderboard (lowest score wins):
12
#31 - Joseph J. Piché / @jjpiche

08/26/2012 at 01:18AM

12
#32 - Trevor Powell / @DoomedBunnies

03/20/2013 at 01:55AM

12
#33 - Gtranbot / @gtranbot

04/27/2013 at 10:48AM

12
#34 - Marco Hinz / @_mhinz_

05/23/2013 at 04:56PM

12
#35 - Petro Тrouq / @zulolosi

07/03/2013 at 06:47PM

12
#36 - Steve Tjoa / @stevetjoa

08/09/2013 at 11:21PM

12
#37 - Xelrifos / @Xelrifos

02/20/2014 at 07:50PM

12
#38 - John Braxler / @braxler

07/31/2014 at 08:26PM

12
#39 - David Nguyen / @nguydavi

06/06/2015 at 12:59PM

12
#40 - Raj / @brshenoy

07/01/2015 at 04:39PM

12
#41 - Evan Coleman / @edc1591

07/01/2015 at 04:44PM

12
#42 - Jim Bob / @babyclubber

02/28/2017 at 04:22PM

12
#43 - Evgeny`s Kindle / @EvgenyKindle

04/28/2018 at 06:24AM

12
#44 - editor3D / @editor3D

11/13/2018 at 04:00PM

12
#45 - Turkey Man / @lvturkeyman

12/03/2018 at 08:02AM

12
#46 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 10:45PM

12
#47 - Himavanth Reddy / @Himavanth1909

08/12/2019 at 09:30AM

13
#48 - Mikael Gustavsson / @slvmnd

04/18/2011 at 03:22PM

13
#49 - Balkoth / @_Balkoth_

04/18/2011 at 05:59PM

13
#50 - Kerson Hsiao / @KersonHsiao

05/10/2012 at 09:11AM

13
#51 - Nick Yeow / @nickyeow

05/23/2019 at 11:23AM

13
#52 - Sigurður Ægir Jónsso / @siggiae

06/19/2019 at 09:31PM

14
#53 - xhtmlforum / @xhtmlforum

04/17/2011 at 05:34PM

14
#54 - Pete Johns / @johnsyweb

04/17/2011 at 10:11PM

14
#55 - Malaney / @iamjh

04/18/2011 at 05:15AM

14
#56 - Tomasz Zurkowski / @doriath88

04/18/2011 at 10:35AM

14
#57 - Dmitry Teslenko / @krab_mozga

04/18/2011 at 12:08PM

14
#58 - Abhishek Mukherjee / @abhishekmukherg

04/18/2011 at 05:31PM

14
#59 - Dragan Cvetinovic / @kawkafi

04/19/2011 at 08:42PM

14
#60 - Sam / @dtjohnnymonkey

04/19/2011 at 10:43PM