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 165 remaining solutions by signing in and submitting your own entry
#166 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

166 active golfers, 410 entries

Leaderboard (lowest score wins):
29
#31 - Peppa Pig / @PeppaPigSg

06/02/2024 at 07:25AM

29
#32 - nickGPT / @nickandbro

08/28/2024 at 11:07PM

30
#33 - t_lini / @t_lini

01/17/2011 at 10:11PM

30
#34 - Pete Johns / @johnsyweb

01/17/2011 at 10:16PM

30
#35 - Paul King / @nrocy

01/17/2011 at 10:19PM

30
#36 - Clive Evans / @swish_bob

01/17/2011 at 11:17PM

30
#37 - Steve Morrow / @yawmark

01/18/2011 at 12:19AM

30
#38 - Balkoth / @_Balkoth_

01/18/2011 at 12:01PM

30
#39 - lemming / @darthlemming

01/18/2011 at 04:27PM

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

01/18/2011 at 04:29PM

30
#41 - xhtmlforum / @xhtmlforum

01/19/2011 at 07:03PM

30
#42 - Keith Swallow / @keithcelt

01/20/2011 at 04:08AM

30
#43 - paul_carey / @paul_carey

01/20/2011 at 06:46PM

30
#44 - thorir danielsson / @thorird

01/23/2011 at 04:10PM

30
#45 - Michał Taszycki / @mehowte

01/25/2011 at 03:12PM

30
#46 - Rob Ciaccio / @RobertoCalavera

01/25/2011 at 07:33PM

30
#47 - Alexander Zolotov / @alex_zolotov

01/26/2011 at 10:27AM

30
#48 - vg / @vimgolfer

01/27/2011 at 07:39AM

30
#49 - Artem Dudarev / @dudarev

01/30/2011 at 03:28PM

30
#50 - Karel Vervaeke / @karel1980

02/01/2011 at 04:41PM

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

02/24/2011 at 03:02PM

30
#52 - xaizek / @xaizek

02/26/2011 at 12:16PM

30
#53 - Sergey Doroshenko / @dorserg

03/04/2011 at 06:26PM

30
#54 - Olof Hellquist / @quistoh

03/05/2011 at 11:32PM

30
#55 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

03/07/2011 at 01:12AM

30
#56 - Scott Nielsen / @smniel

03/18/2011 at 07:11AM

30
#57 - Thom Hughes / @thom_hughes_1

03/27/2011 at 11:37PM

30
#58 - Dragan Cvetinovic / @kawkafi

04/15/2011 at 07:36PM

30
#59 - Bojan Petrovic / @_bojan

04/19/2011 at 01:10AM

30
#60 - Justin Love / @wondible

09/04/2011 at 02:37PM