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

Rotating Philosophers Problem

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

Start file
Socrates Voltaire Descartes Plato
End file
Socrates Voltaire Descartes Plato Konfuzius
Konfuzius Socrates Voltaire Descartes Plato
Plato Konfuzius Socrates Voltaire Descartes
Descartes Plato Konfuzius Socrates Voltaire
Voltaire Descartes Plato Konfuzius Socrates

View Diff

1c1,5
< Socrates Voltaire Descartes Plato
---
> Socrates Voltaire Descartes Plato Konfuzius
> Konfuzius Socrates Voltaire Descartes Plato
> Plato Konfuzius Socrates Voltaire Descartes
> Descartes Plato Konfuzius Socrates Voltaire
> Voltaire Descartes Plato Konfuzius Socrates

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 152 remaining solutions by signing in and submitting your own entry
#153 shulc / @shulc - Score: 170 - 01/20/11 @ 11:33
A Konfuzius<Esc>yy<Esc>pwwwwdw<Esc>I<Esc>p<Esc>u<Esc>P <Esc>hli <Esc>A<Esc>xlhhhhhlyy<Esc>pwwwwdw<Esc>I<Esc>P <Esc>hli <Esc>Ax<Esc>xx<Esc>yy<Esc>pwwwwdw<Esc>IP<Esc>u<Esc>Pi <Esc>uli <Esc>lllllllllllllllllllllllllllllllllllllllx<Esc>yy<Esc>pwwwwdw<Esc>I<Esc>P <Esc>i <Esc>A<Esc>xx<Esc>u<Esc>:wq<CR>

0 comments


Created by: @HaskellElephant

153 active golfers, 360 entries

Leaderboard (lowest score wins):
30
#31 - Clive Evans / @swish_bob

01/17/2011 at 11:17PM

30
#32 - Steve Morrow / @yawmark

01/18/2011 at 12:19AM

30
#33 - Balkoth / @_Balkoth_

01/18/2011 at 12:01PM

30
#34 - lemming / @darthlemming

01/18/2011 at 04:27PM

30
#35 - h_east (トロッコ6個) / @h_east

01/18/2011 at 04:29PM

30
#36 - xhtmlforum / @xhtmlforum

01/19/2011 at 07:03PM

30
#37 - Keith Swallow / @keithcelt

01/20/2011 at 04:08AM

30
#38 - paul_carey / @paul_carey

01/20/2011 at 06:46PM

30
#39 - thorir danielsson / @thorird

01/23/2011 at 04:10PM

30
#40 - Michał Taszycki / @mehowte

01/25/2011 at 03:12PM

30
#41 - Rob Ciaccio / @RobertoCalavera

01/25/2011 at 07:33PM

30
#42 - Alexander Zolotov / @alex_zolotov

01/26/2011 at 10:27AM

30
#43 - vg / @vimgolfer

01/27/2011 at 07:39AM

30
#44 - Artem Dudarev / @dudarev

01/30/2011 at 03:28PM

30
#45 - Karel Vervaeke / @karel1980

02/01/2011 at 04:41PM

30
#46 - Dezső Zoltán / @zakiazigazi

02/24/2011 at 03:02PM

30
#47 - xaizek / @xaizek

02/26/2011 at 12:16PM

30
#48 - Sergey Doroshenko / @dorserg

03/04/2011 at 06:26PM

30
#49 - Olof Hellquist / @quistoh

03/05/2011 at 11:32PM

30
#50 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

03/07/2011 at 01:12AM

30
#51 - Scott Nielsen / @smniel

03/18/2011 at 07:11AM

30
#52 - Thom Hughes / @thom_hughes_1

03/27/2011 at 11:37PM

30
#53 - Dragan Cvetinovic / @kawkafi

04/15/2011 at 07:36PM

30
#54 - Bojan Petrovic / @_bojan

04/19/2011 at 01:10AM

30
#55 - Justin Love / @wondible

09/04/2011 at 02:37PM

30
#56 - Jesús Espino / @jespinog

09/05/2011 at 05:38PM

30
#57 - こばばー / @symmet

09/17/2011 at 07:48PM

30
#58 - Trevor Powell / @DoomedBunnies

11/28/2011 at 07:30AM

30
#59 - Ben Somers / @somanyrobots

11/30/2011 at 02:01AM

30
#60 - Mislav Marohnić / @mislav

12/06/2011 at 06:27PM